1.1.2 Cache Objects

If you wish to supply your own caching implementation then you will need to pass in an object that supports the following methods. Note that the memcache module supports this interface natively.

get( key)
Takes a string key and returns the value as a string.

set( key, value)
Takes a string key and value and stores it in the cache.

delete( key)
Deletes the cached value stored at key. The value of key is a string.