Sha256: 201cebda109a4b2f239390a27224487cc11d0a095b88b703dc21fbdebf47097b

Contents?: true

Size: 1.05 KB

Versions: 15

Compression:

Stored size: 1.05 KB

Contents

module Moneta
  # Wraps the calls to the adapter
  # @api public
  class Wrapper < Proxy
    # (see Proxy#key?)
    def key?(key, options = {})
      wrap(:key?, key, options) { super }
    end

    # (see Proxy#load)
    def load(key, options = {})
      wrap(:load, key, options) { super }
    end

    # (see Proxy#store)
    def store(key, value, options = {})
      wrap(:store, key, value, options) { super }
    end

    # (see Proxy#delete)
    def delete(key, options = {})
      wrap(:delete, key, options) { super }
    end

    # (see Proxy#increment)
    def increment(key, amount = 1, options = {})
      wrap(:increment, key, amount, options) { super }
    end

    # (see Proxy#create)
    def create(key, value, options = {})
      wrap(:create, key, value, options) { super }
    end

    # (see Proxy#clear)
    def clear(options = {})
      wrap(:clear, options) { super }
    end

    # (see Proxy#close)
    def close
      wrap(:close) { super }
    end

    # (see Proxy#features)
    def features
      wrap(:features) { super }
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
moneta-1.0.0 lib/moneta/wrapper.rb
moneta-0.8.1 lib/moneta/wrapper.rb
moneta-0.8.0 lib/moneta/wrapper.rb
moneta-0.7.20 lib/moneta/wrapper.rb
moneta-0.7.19 lib/moneta/wrapper.rb
moneta-0.7.18 lib/moneta/wrapper.rb
moneta-0.7.17 lib/moneta/wrapper.rb
moneta-0.7.16 lib/moneta/wrapper.rb
moneta-0.7.15 lib/moneta/wrapper.rb
moneta-0.7.14 lib/moneta/wrapper.rb
moneta-0.7.13 lib/moneta/wrapper.rb
moneta-0.7.12 lib/moneta/wrapper.rb
moneta-0.7.11 lib/moneta/wrapper.rb
moneta-0.7.10 lib/moneta/wrapper.rb
moneta-0.7.9 lib/moneta/wrapper.rb