class Zache::Fake

Fake implementation that doesn't cache anything, but behaves like it does. It implements all methods of the original class, but doesn't do any caching. This is very useful for testing.

Public Instance Methods

clean() click to toggle source
# File lib/zache.rb, line 66
def clean; end
exists?(*) click to toggle source
# File lib/zache.rb, line 52
def exists?(*)
  true
end
get(*) { || ... } click to toggle source
# File lib/zache.rb, line 48
def get(*)
  yield
end
locked?() click to toggle source
# File lib/zache.rb, line 56
def locked?
  false
end
put(*) click to toggle source
# File lib/zache.rb, line 60
def put(*); end
remove(_key) click to toggle source
# File lib/zache.rb, line 62
def remove(_key); end
remove_all() click to toggle source
# File lib/zache.rb, line 64
def remove_all; end
size() click to toggle source
# File lib/zache.rb, line 44
def size
  1
end