class Kiwi::RedisStore

Defined in:

kiwi/redis_store.cr

Constructors

Instance Method Summary

Instance methods inherited from class Kiwi::Store

[](*args) [], []=(*args) []=, clear : Store clear, delete(key : String) : String | Nil delete, fetch(key : String, &) : String | Nil fetch, get(key : String) : String | Nil get, set(key : String, val : String) : String set

Constructor Detail

def self.new(redis : Redis | Redis::PooledClient, expires_in : Time::Span = 5.minutes) #

[View source]

Instance Method Detail

def clear : Store #

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

[View source]
def expires_in : Time::Span #

[View source]
def get(key : String) : String | Nil #

[View source]
def rset(key : String, val : String, expires : UInt32 = 0) : String #

[View source]
def set(key : String, val : String) : String #

[View source]