Sha256: a0fd965fde7b2e9e224a9dd89bb43a343deffba79e2d95f69b4a9e02a4c07a4c

Contents?: true

Size: 503 Bytes

Versions: 8

Compression:

Stored size: 503 Bytes

Contents

module Moneta
  module Adapters
    # Memory backend using a hash to store the entries
    # @api public
    class Memory
      include Defaults
      include NilValues
      include HashAdapter
      include IncrementSupport
      include CreateSupport
      include EachKeySupport

      # @param [Hash] options Options hash
      # @option options [Hash] :backend Use existing backend instance
      def initialize(options = {})
        @backend = options[:backend] || {}
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
moneta-1.4.2 lib/moneta/adapters/memory.rb
moneta-1.4.1 lib/moneta/adapters/memory.rb
moneta-1.4.0 lib/moneta/adapters/memory.rb
moneta-1.3.0 lib/moneta/adapters/memory.rb
moneta-1.2.1 lib/moneta/adapters/memory.rb
moneta-1.2.0 lib/moneta/adapters/memory.rb
moneta-1.1.1 lib/moneta/adapters/memory.rb
moneta-1.1.0 lib/moneta/adapters/memory.rb