class CacheHash(V)

Defined in:

cache_hash.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(cache_time_span : Time::Span) #

[View source]

Instance Method Detail

def fresh?(key : String) #

[View source]
def get(key : String) #

[View source]
def keys #

[View source]
def purge_stale #

[View source]
def refresh(key : String) #

[View source]
def set(key : String, val : V | Nil) #

[View source]
def time(key : String) #

[View source]