APC-based caching class.
2008.11.30
2006-2008 LifeNexus Digital, Inc., and contributors.
| Simplified BSD License | http://opensource.org/licenses/bsd-license.php |
| Tarzan | http://tarzan-aws.com |
| APC | http://php.net/apc |
public function __construct( $name, $location, $expires )
The constructor
public
| name | string (Required) A name to uniquely identify the cache object. |
| location | string (Required) The location to store the cache object in. This may vary by cache method. |
| expires | integer (Required) The number of seconds until a cache object is considered stale. |
object Reference to the cache object.
| Example Usage | http://tarzan-aws.com |
public function create( $data )
Creates a new cache.
public
| data | mixed (Required) The data to cache. |
boolean Whether the operation was successful.
| Example Usage | http://tarzan-aws.com |
public function read()
Reads a cache.
public
mixed Either the content of the cache object, or boolean false.
| Example Usage | http://tarzan-aws.com |
public function update( $data )
Updates an existing cache.
public
| data | mixed (Required) The data to cache. |
boolean Whether the operation was successful.
| Example Usage | http://tarzan-aws.com |
public function is_expired()
Defined here, but always returns false. APC manages it’s own expirations.
public
boolean Whether the cache is expired or not.
| Example Usage | http://tarzan-aws.com |