Class: Bricolage::RedisHashRowWriter
- Inherits:
-
RedisRowWriter
- Object
- RedisRowWriter
- Bricolage::RedisHashRowWriter
- Defined in:
- lib/bricolage/redisdatasource.rb
Instance Attribute Summary
Attributes inherited from RedisRowWriter
Instance Method Summary collapse
Methods inherited from RedisRowWriter
#expire, for_encode, #initialize, #key, #pipelined, #value_columns, #write
Constructor Details
This class inherits a constructor from Bricolage::RedisRowWriter
Instance Method Details
#do_write(key, values) ⇒ Object
138 139 140 141 142 143 |
# File 'lib/bricolage/redisdatasource.rb', line 138 def do_write(key, values) # set a value for each key:field pair values.map {|field, value| @client.hset(key, field, value) } end |