RedisServiceManager::NodeHash
Inherits Iterable < Enumerable < Reference < Object
Constructors
new(hash_key : String, redis : Redis::Client)
SourceInstance methods
[](key, & : String -> String)
Source[](key)
Source[]=(status_name, json_value)
Source[]?(key)
Sourceclear
Sourcedelete(key, &)
Sourcedelete(key)
Sourceeach(*args, **options)
Sourceeach(*args, **options, &)
Sourceempty?
Returns true if self does not contain any element.
([] of Int32).empty? # => true
([1]).empty? # => false
[nil, false].empty? # => false
#present?returns the inverse.
fetch(key, &)
Sourcefetch(key, default)
Sourcehash_key
Sourcekeys
Sourceredis
Sourceto_h
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}
values
Source