Sha256: e9f9a8425f6e10691eb02ac620654964b882d263254cf3bed66bb21377063199
Contents?: true
Size: 690 Bytes
Versions: 3
Compression:
Stored size: 690 Bytes
Contents
module Moneta # Wraps the calls to the adapter # @api public class Wrapper < Proxy def key?(key, options = {}) wrap(:key?, key, options) { super } end def load(key, options = {}) wrap(:load, key, options) { super } end def store(key, value, options = {}) wrap(:store, key, value, options) { super } end def delete(key, options = {}) wrap(:delete, key, options) { super } end def increment(key, amount = 1, options = {}) wrap(:increment, key, amount, options) { super } end def clear(options = {}) wrap(:clear, options) { super } end def close wrap(:close) { super } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
moneta-0.7.2 | lib/moneta/wrapper.rb |
moneta-0.7.1 | lib/moneta/wrapper.rb |
moneta-0.7.0 | lib/moneta/wrapper.rb |