class

Azu::Cache::RedisStore

Inherits Azu::Cache::Store < Reference < Object

Redis-based cache store with Redis::PooledClient

Constructors

new(redis_url : String, pool_size : Int32 = 5, timeout : Time::Span = 5.seconds, default_ttl : Time::Span | Nil = nil, operation_timeout : Time::Span = 2.seconds)
Source

Instance methods

clear
Source
close
Source
decrement(key : String, amount : Int32 = 1, ttl : Time::Span | Nil = nil) : Int32 | Nil

Override decrement for Redis native support

Source
delete(key : String) : Bool
Source
exists?(key : String) : Bool
Source
get(key : String) : String | Nil
Source
get_multi(keys : Array(String)) : Hash(String, String | Nil)

Override multi-get for Redis native support

Source
increment(key : String, amount : Int32 = 1, ttl : Time::Span | Nil = nil) : Int32 | Nil

Override increment for Redis native support

Source
info
Source
ping

Redis-specific methods

Source
set(key : String, value : String, ttl : Time::Span | Nil = nil) : Bool
Source
set_multi(values : Hash(String, String), ttl : Time::Span | Nil = nil) : Bool

Override multi-set for Redis native support

Source
size
Source