class Rebar::DSL::Hash
Attributes
connection[R]
key[R]
Public Class Methods
new(connection, key, &block)
click to toggle source
# File lib/rebar/dsl/hash.rb, line 4 def initialize(connection, key, &block) @connection = connection @key = key instance_eval(&block) if block_given? end
Public Instance Methods
keys(count)
click to toggle source
# File lib/rebar/dsl/hash.rb, line 13 def keys(count) count.times do connection.hset(key, Rebar::Random.string, Rebar::Random.string) end end