Class: ESI::Cache

Inherits:
Object
  • Object
show all
Defined in:
lib/esi/cache.rb

Overview

cache interface

all caches store Fragments

get - uri,params => Fragment

cached? - uri,params => boolean

put - uri,params, max_age, body => nil

sweep! - tells the cache to expire anything that needs expiring

keys - is an optional method for iterating over all keys, may not be exposed by all cache backends

delete - key remove the key from the cache

Base Cache object

Direct Known Subclasses

MemcachedCache, RubyCache

Instance Method Summary collapse

Constructor Details

#initializeCache

Returns a new instance of Cache.



53
54
# File 'lib/esi/cache.rb', line 53

def initialize
end