Sha256: 54447d113aa000f5ffa0d6eedc9132324cd83e06da9ed7769eceec8acbcb724c

Contents?: true

Size: 307 Bytes

Versions: 13

Compression:

Stored size: 307 Bytes

Contents

class TestCache
  def initialize
    @data = {}
  end

  def read(name)
    @data[name]
  end

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

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

  def clear
    @data.clear
  end

  def keys
    @data.keys
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
grosser-cachy-0.1.0 spec/test_cache.rb
grosser-cachy-0.1.1 spec/test_cache.rb
grosser-cachy-0.1.2 spec/test_cache.rb
cachy-0.3.1 spec/test_cache.rb
cachy-0.3.0 spec/test_cache.rb
cachy-0.2.1 spec/test_cache.rb
cachy-0.2.0 spec/test_cache.rb
cachy-0.1.7 spec/test_cache.rb
cachy-0.1.6 spec/test_cache.rb
cachy-0.1.5 spec/test_cache.rb
cachy-0.1.4 spec/test_cache.rb
cachy-0.1.3 spec/test_cache.rb
cachy-0.1.2 spec/test_cache.rb