Sha256: 33a273c83ba9474d669108a158e2a017d84e064807938234aa3c3ead20e0ed3c

Contents?: true

Size: 469 Bytes

Versions: 4

Compression:

Stored size: 469 Bytes

Contents

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
moneta-1.6.0 lib/moneta/adapters/memory.rb
moneta-1.5.2 lib/moneta/adapters/memory.rb
moneta-1.5.1 lib/moneta/adapters/memory.rb
moneta-1.5.0 lib/moneta/adapters/memory.rb