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"))
SourceInstance methods
[]?(key : String, as type : T.class) : T | Nil forall T
Sourcedelete(key : String) : Nil
Sourcefetch_all(keys : Array(String), as type : T.class) : Array(T | Nil) forall T
Sourcewrite(key : String, value : T, expires_in duration : Time::Span | Nil) forall T
Source