Method: Redis::Commands::Hashes#hset
- Defined in:
- lib/redis/commands/hashes.rb
#hset(key, *attrs) ⇒ Integer
Set one or more hash values.
23 24 25 26 27 |
# File 'lib/redis/commands/hashes.rb', line 23 def hset(key, *attrs) attrs = attrs.first.flatten if attrs.size == 1 && attrs.first.is_a?(Hash) send_command([:hset, key, *attrs]) end |