class RedisServiceManager::NodeHash

Included Modules

Defined in:

redis_service_manager/node_hash.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(hash_key : String, redis : Redis::Client) #

[View source]

Instance Method Detail

def [](key, & : String -> String) #

[View source]
def [](key) #

[View source]
def []=(status_name, json_value) #

[View source]
def []?(key) #

[View source]
def clear #

[View source]
def delete(key, &) #

[View source]
def delete(key) #

[View source]
def each(*args, **options) #

[View source]
def each(*args, **options, &) #

[View source]
def empty? #
Description copied from module Enumerable({String, String})

Returns true if self is empty, false otherwise.

([] of Int32).empty? # => true
([1]).empty?         # => false

[View source]
def fetch(key, &) #

[View source]
def fetch(key, default) #

[View source]
def hash_key : String #

[View source]
def keys #

[View source]
def redis : Redis::Client #

[View source]
def size #
Description copied from module Enumerable({String, String})

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4

[View source]
def to_h : Hash(String, String) #
Description copied from module Enumerable({String, String})

Creates a Hash out of an Enumerable where each element is a 2 element structure (for instance a Tuple or an Array).

[[:a, :b], [:c, :d]].to_h        # => {:a => :b, :c => :d}
Tuple.new({:a, 1}, {:c, 2}).to_h # => {:a => 1, :c => 2}

[View source]
def values #

[View source]