Method: FDB::Database#get_and_watch
- Defined in:
- lib/fdbimpl.rb
#get_and_watch(key) ⇒ Object
628 629 630 631 632 633 634 |
# File 'lib/fdbimpl.rb', line 628 def get_and_watch(key) transact do |tr| value = tr.get(key) watch = tr.watch(key) [value.value, watch] end end |