Class: VK::HASH
Instance Attribute Summary
Attributes inherited from O
Instance Method Summary collapse
Methods inherited from O
#delete!, #expire, #initialize, #value
Constructor Details
This class inherits a constructor from VK::O
Instance Method Details
#[](k) ⇒ Object
450 451 452 |
# File 'lib/valkey/objects.rb', line 450 def [] k VK.redis.call("HGET", key, k); end |
#[]=(k, v) ⇒ Object
453 454 455 |
# File 'lib/valkey/objects.rb', line 453 def []= k,v VK.redis.call("HSET", key, k, v); end |