class

RedisServiceManager::NodeHash

Inherits Iterable < Enumerable < Reference < Object

Constructors

new(hash_key : String, redis : Redis::Client)
Source

Instance methods

[](key, & : String -> String)
Source
[](key)
Source
[]=(status_name, json_value)
Source
[]?(key)
Source
clear
Source
delete(key, &)
Source
delete(key)
Source
each(*args, **options)
Source
each(*args, **options, &)
Source
empty?

Returns true if self does not contain any element.

([] of Int32).empty? # => true
([1]).empty?         # => false
[nil, false].empty?  # => false
  • #present? returns the inverse.
Source
fetch(key, &)
Source
fetch(key, default)
Source
hash_key
Source
keys
Source
redis
Source
size

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4
Source
to_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}
Source
values
Source