Module Cache
In: lib/memcache_util.rb

A utility wrapper around the MemCache client to simplify cache access. All methods silently ignore MemCache errors.

This API is deprecated, please use the Rails.cache API or your own wrapper API around MemCache.

Methods

add   delete   get   logger   put   reset  

Public Class methods

Sets value in the cache at key, with an optional expiry time in seconds. If key already exists in cache, returns nil.

Deletes key from the cache in delay seconds.

Returns the object at key from the cache if successful, or nil if either the object is not in the cache or if there was an error attermpting to access the cache.

If there is a cache miss and a block is given the result of the block will be stored in the cache with optional expiry, using the add method rather than set.

Try to return a logger object that does not rely on ActiveRecord for logging.

Sets value in the cache at key, with an optional expiry time in seconds.

Resets all connections to MemCache servers.

[Validate]