Class: ESI::Cache
- Inherits:
-
Object
- Object
- ESI::Cache
- 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
Instance Method Summary collapse
-
#initialize ⇒ Cache
constructor
A new instance of Cache.
Constructor Details
#initialize ⇒ Cache
Returns a new instance of Cache.
53 54 |
# File 'lib/esi/cache.rb', line 53 def initialize end |