class

Vug::MemoryCache

Inherits Reference < Object

Constructors

new(size_limit : Int32 = (10 * 1024) * 1024, entry_ttl : Time::Span = 7.days)
Source

Instance methods

clear
Source
get(url : String) : String | Nil

Retrieves a cached path for the given URL. Note: this is a mutating operation — expired entries are evicted on read.

Source
set(url : String, local_path : String) : Nil
Source
size
Source