class Dude::Redis

Included Modules

Defined in:

redis.cr

Constructors

Instance Method Summary

Instance methods inherited from class Dude::Store

delete(key : Symbol | String) delete, get(key : Symbol | String) get, set(key : Symbol | String, value, expire) set, transaction(& : Transaction -> _) transaction, truncate truncate

Constructor Detail

def self.new(client : ::Redis::Client, namespace : Symbol | String = :dude) #

[View source]
def self.new(url : String) #

[View source]
def self.new(url : URI) #

[View source]

Instance Method Detail

def client : Redis::Client #

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

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

[View source]
def key : Key #

[View source]
def set(key : Symbol | String, value, expire) #

[View source]
def transaction(& : Transaction -> _) #

[View source]
def truncate #

[View source]