Module: Protocol::Redis::Methods::Hashes
- Defined in:
- lib/protocol/redis/methods/hashes.rb
Instance Method Summary collapse
- #hdel(key, *fields) ⇒ Object
- #hexists(key, field) ⇒ Object
- #hget(key, field) ⇒ Object
- #hgetall(key) ⇒ Object
- #hincrby(key, field, increment) ⇒ Object
- #hincrbyfloat(key, field, increment) ⇒ Object
- #hkeys(key) ⇒ Object
- #hlen(key) ⇒ Object
- #hmget(key, *fields, &blk) ⇒ Object
- #hmset(key, *attrs) ⇒ Object
- #hset(key, field, value) ⇒ Object
- #hsetnx(key, field, value) ⇒ Object
- #hvals(key) ⇒ Object
Instance Method Details
#hdel(key, *fields) ⇒ Object
49 50 51 |
# File 'lib/protocol/redis/methods/hashes.rb', line 49 def hdel(key, *fields) return call('HDEL', key, *fields) end |
#hexists(key, field) ⇒ Object
53 54 55 |
# File 'lib/protocol/redis/methods/hashes.rb', line 53 def hexists(key, field) return call('HEXISTS', key, field) end |
#hget(key, field) ⇒ Object
41 42 43 |
# File 'lib/protocol/redis/methods/hashes.rb', line 41 def hget(key, field) return call('HGET', key, field) end |
#hgetall(key) ⇒ Object
73 74 75 |
# File 'lib/protocol/redis/methods/hashes.rb', line 73 def hgetall(key) return call('HGETALL', key) end |
#hincrby(key, field, increment) ⇒ Object
57 58 59 |
# File 'lib/protocol/redis/methods/hashes.rb', line 57 def hincrby(key, field, increment) return call('HINCRBY', key, field, increment) end |
#hincrbyfloat(key, field, increment) ⇒ Object
61 62 63 |
# File 'lib/protocol/redis/methods/hashes.rb', line 61 def hincrbyfloat(key, field, increment) return call('HINCRBYFLOAT', key, field, increment) end |
#hkeys(key) ⇒ Object
65 66 67 |
# File 'lib/protocol/redis/methods/hashes.rb', line 65 def hkeys(key) return call('HKEYS', key) end |
#hlen(key) ⇒ Object
25 26 27 |
# File 'lib/protocol/redis/methods/hashes.rb', line 25 def hlen(key) return call('HLEN', key) end |
#hmget(key, *fields, &blk) ⇒ Object
45 46 47 |
# File 'lib/protocol/redis/methods/hashes.rb', line 45 def hmget(key, *fields, &blk) return call('HMGET', key, *fields, &blk) end |
#hmset(key, *attrs) ⇒ Object
37 38 39 |
# File 'lib/protocol/redis/methods/hashes.rb', line 37 def hmset(key, *attrs) return call('HMSET', key, *attrs) end |
#hset(key, field, value) ⇒ Object
29 30 31 |
# File 'lib/protocol/redis/methods/hashes.rb', line 29 def hset(key, field, value) return call('HSET', key, field, value) end |
#hsetnx(key, field, value) ⇒ Object
33 34 35 |
# File 'lib/protocol/redis/methods/hashes.rb', line 33 def hsetnx(key, field, value) return call('HSETNX', key, field, value) end |
#hvals(key) ⇒ Object
69 70 71 |
# File 'lib/protocol/redis/methods/hashes.rb', line 69 def hvals(key) return call('HVALS', key) end |