Sha256: b26dcaf71a6cc2d6e8f04908ca6802f9e7b0e832197dd29320be781655cde7b8

Contents?: true

Size: 660 Bytes

Versions: 25

Compression:

Stored size: 660 Bytes

Contents

module ActiveSupport
  module Cache
    class MemoryStore < Store
      def initialize
        @data = {}
      end

      def read(name, options = nil)
        super
        @data[name]
      end

      def write(name, value, options = nil)
        super
        @data[name] = value
      end

      def delete(name, options = nil)
        super
        @data.delete(name)
      end

      def delete_matched(matcher, options = nil)
        super
        @data.delete_if { |k,v| k =~ matcher }
      end

      def exist?(name,options = nil)
        super
        @data.has_key?(name)
      end

      def clear
        @data.clear
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 7 rubygems

Version Path
3mix-castronaut-0.5.0.2 vendor/activesupport/lib/active_support/cache/memory_store.rb
masover-castronaut-0.4.4.4 vendor/activesupport/lib/active_support/cache/memory_store.rb
masover-castronaut-0.4.4.5 vendor/activesupport/lib/active_support/cache/memory_store.rb
masover-castronaut-0.5.0.1 vendor/activesupport/lib/active_support/cache/memory_store.rb
relevance-castronaut-0.4.1 vendor/activesupport/lib/active_support/cache/memory_store.rb
relevance-castronaut-0.4.2 vendor/activesupport/lib/active_support/cache/memory_store.rb
relevance-castronaut-0.4.3 vendor/activesupport/lib/active_support/cache/memory_store.rb
relevance-castronaut-0.4.4 vendor/activesupport/lib/active_support/cache/memory_store.rb
relevance-castronaut-0.4.5 vendor/activesupport/lib/active_support/cache/memory_store.rb
relevance-castronaut-0.4.6 vendor/activesupport/lib/active_support/cache/memory_store.rb
relevance-castronaut-0.5.0 vendor/activesupport/lib/active_support/cache/memory_store.rb
relevance-castronaut-0.5.1 vendor/activesupport/lib/active_support/cache/memory_store.rb
relevance-castronaut-0.5.2 vendor/activesupport/lib/active_support/cache/memory_store.rb
relevance-castronaut-0.5.3 vendor/activesupport/lib/active_support/cache/memory_store.rb
relevance-castronaut-0.5.4 vendor/activesupport/lib/active_support/cache/memory_store.rb
radiant-0.7.2 vendor/rails/activesupport/lib/active_support/cache/memory_store.rb
vibes-bj-1.2.2 spec/rails_root/vendor/rails/activesupport/lib/active_support/cache/memory_store.rb
vibes-bj-1.2.1 spec/rails_root/vendor/rails/activesupport/lib/active_support/cache/memory_store.rb
activesupport-2.1.0 lib/active_support/cache/memory_store.rb
activesupport-2.1.1 lib/active_support/cache/memory_store.rb