class

ActiveSupport::Cache::RedisCacheStore

Inherits ActiveSupport::Cache::Store < ActiveSupport::Cache::CacheStore < Reference < Object

Constructors

new(url : String = ENV.fetch("REDIS_URL", "redis:///"), namespace : String | Nil = nil)
Source

Instance methods

clear
Source
decrement(name : String, amount : Int32 = 1, expires_in : Time::Span | Nil = nil) : Int32 | Nil
Source
increment(name : String, amount : Int32 = 1, expires_in : Time::Span | Nil = nil) : Int32 | Nil

Rails semantics: increment on an existing, unexpired entry keeps the entry's original expiry (fixed window from the first write — verified against AS 8.1.4 oracle, rate_limit cases). A new entry gets the passed expires_in. Returns nil only when the store cannot increment (NullStore) — rate limiting is disabled then.

Source
keys(pattern : String = "*") : Array(String)
Source
lookup(name : String) : Entry | Nil
Source
remove(name : String) : Nil
Source
store(name : String, entry : Entry) : Nil
Source