Method: Redis#hset
- Defined in:
- lib/redis.rb
#hset(key, *attrs) ⇒ Integer
Set one or more hash values.
2133 2134 2135 2136 2137 2138 2139 |
# File 'lib/redis.rb', line 2133 def hset(key, *attrs) attrs = attrs.first.flatten if attrs.size == 1 && attrs.first.is_a?(Hash) synchronize do |client| client.call([:hset, key, *attrs]) end end |