Method: Moneta::Adapters::LMDB#slice
- Defined in:
- lib/moneta/adapters/lmdb.rb
#slice(*keys, **options) ⇒ <(Object, Object)>
Note:
The keys in the return value may be the same objects that were supplied (i.e. Object#equal?), or may simply be equal (i.e. Object#==).
Note:
Some adapters may implement this method atomically. The default implmentation uses #values_at.
Returns a collection of key-value pairs corresponding to those supplied keys which are present in the key-value store, and their associated values. Only those keys present in the store will have pairs in the return value. The return value can be any enumerable object that yields pairs, so it could be a hash, but needn’t be.
107 108 109 |
# File 'lib/moneta/adapters/lmdb.rb', line 107 def slice(*keys, **) backend.transaction { super } end |