module Armature::Cache::CacheStore

Direct including types

Defined in:

cache.cr

Instance Method Summary

Instance Method Detail

def []=(key : String, value : T) : Nil forall T #

[View source]
abstract def []?(key : String, as type : T.class) forall T #

[View source]
abstract def delete(key : String) : Nil #

[View source]
def fetch(key : String, expires_in duration : Time::Span | Nil, & : -> T) forall T #

[View source]
abstract def write(key : String, value : T, expires_in : Time::Span | Nil) forall T #

[View source]