Class: VK::VALUE
Instance Attribute Summary
Attributes inherited from O
Instance Method Summary collapse
Methods inherited from O
#delete!, #expire, #initialize
Constructor Details
This class inherits a constructor from VK::O
Instance Method Details
#exist? ⇒ Boolean
363 364 365 |
# File 'lib/valkey/objects.rb', line 363 def exist? VK.redis.call("GET", key) ? true : false end |
#match(r, &b) ⇒ Object
366 367 368 369 370 371 372 373 |
# File 'lib/valkey/objects.rb', line 366 def match r, &b m = Regexp.new(r).match(value) if block_given? b.call(m) else return m end end |