\JCacheStorageMock
Mock of JCacheStorage Backend Class. Used for testing of cache handlers.
Synopsis
class JCacheStorageMock
extends JCacheStorage
{
- // members
- private $_storage;
- // Inherited members from JCacheStorage
- protected $rawname;
- public datetime $_now;
- public $_lifetime;
- public $_locking;
- public $_language;
- public $_application;
- public $_hash;
- // methods
- public void __construct()
- public mixed get()
- public boolean store()
- public boolean remove()
- public boolean clean()
- public static boolean isSupported()
- public string _getCacheId()
- // Inherited methods from JCacheStorage
- public void __construct()
- public static JCacheStorage getInstance()
- public mixed get()
- public mixed getAll()
- public boolean store()
- public boolean remove()
- public boolean clean()
- public boolean gc()
- public static boolean isSupported()
- public static boolean test()
- public boolean lock()
- public boolean unlock()
- protected string _getCacheId()
- public static array addIncludePath()
Hierarchy
Extends
Tasks
Tasks
Line | Task |
---|---|
175+ | Review this method. The docblock doesn't fit what it actually does. |
Members
private
- $_storage
protected
- $rawname — string
public
- $_application — string
- $_hash — string
- $_language — string
- $_lifetime — integer
- $_locking — boolean
- $_now — datetime
Methods
public
- __construct() — Constructor
- _getCacheId() — Get a cache_id string from an id/group pair
- clean() — Clean cache for a group given a mode.
- get() — Get cached data from y id and group
- isSupported() — Test to see if the cache storage is available.
- remove() — Remove a cached data entry by id and group
- store() — Store the data
Inherited from JCacheStorage
protected
- _getCacheId() — Get a cache_id string from an id/group pair
public
- addIncludePath() — Add a directory where JCacheStorage should search for handlers. You may either pass a string or an array of directories.
- clean() — Clean cache for a group given a mode.
- gc() — Garbage collect expired cache data
- get() — Get cached data by id and group
- getAll() — Get all cached data
- getInstance() — Returns a cache storage handler object, only creating it if it doesn't already exist.
- isSupported() — Test to see if the storage handler is available.
- lock() — Lock cached item
- remove() — Remove a cached data entry by id and group
- store() — Store the data to cache by id and group
- test() — Test to see if the storage handler is available.
- unlock() — Unlock cached item