Methods
All methods in the Solar_Cache_Adapter_Memcache
class.
Public
-
__construct()
-
Constructor.
-
__destruct()
-
Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
-
add()
-
Inserts cache entry data, but only if the entry does not already exist.
-
delete()
-
Deletes a cache entry.
-
deleteAll()
-
Removes all cache entries.
-
dump()
-
Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
-
entry()
-
Returns the adapter-specific name for the entry key.
-
fetch()
-
Gets cache entry data.
-
fetchOrAdd()
-
Fetches data if it exists; if not, uses a callback to create the data and adds it to the cache in a race-condition-safe way.
-
fetchOrSave()
-
Fetches data if it exists; if not, uses a callback to create the data and saves it to the cache.
-
getLife()
-
Gets the cache lifetime in seconds.
-
increment()
-
Increments a cache entry value by the specified amount.
-
isActive()
-
Gets the current activity state of the cache (on or off).
-
locale()
-
Looks up class-specific locale strings based on a key.
-
save()
-
Updates or inserts cache entry data.
-
setActive()
-
Makes the cache active (true) or inactive (false).
Protected
-
_buildConfig()
-
Builds and returns the default config for a class, including all configs inherited from its parents.
-
_createPool()
-
Adds servers to a memcache connection pool from configuration.
-
_exception()
-
Convenience method for returning exceptions with localized text.
-
_fetchOrInsert()
-
Support method for
fetchOrSave()
andfetchOrAdd()
. -
_postConfig()
-
A hook that activates after _buildConfig() in the constructor.
-
_postConstruct()
-
Post-construction tasks to complete object construction.
-
_preConfig()
-
Checks to make sure the memcache extension is available.
Private
None.