class Dude::Redis

Included Modules

Defined in:

redis.cr

Constructors

Instance Method Summary

Instance methods inherited from module Dude::Store

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

Constructor Detail

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

[View source]
def self.new(url : String, namespace = :dude) #

[View source]
def self.new(url : URI, namespace = :dude) #

[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]