Sha256: 8da324dbd95ceef22c99222ab66cd3bd6a826a62ca8f639f1a62e467b056b67f

Contents?: true

Size: 252 Bytes

Versions: 2

Compression:

Stored size: 252 Bytes

Contents

class Cachew
  module Adapters
    class HashAdapter < BaseAdapter
      def set(key, value)
        store[key] = value
      end

      def get(key)
        store[key]
      end

      def has?(key)
        store.key?(key)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cachew-0.1.1 lib/cachew/adapters/hash_adapter.rb
cachew-0.1.0 lib/cachew/adapters/hash_adapter.rb