class

Armature::Cache::RedisStore

Inherits Armature::Cache::CacheStore / Reference / Object

Constructors

new(redis : Redis::Client, default_expiration : Time::Span = 1.day, log : Log = Log.for("armature.cache"))
Source

Instance methods

[]?(key : String, as type : T.class) : T | Nil forall T
Source
delete(key : String) : Nil
Source
fetch_all(keys : Array(String), as type : T.class) : Array(T | Nil) forall T
Source
write(key : String, value : T, expires_in duration : Time::Span | Nil) forall T
Source