Source for file Cache.php
Documentation is available at Cache.php
* Base class for all caches
* @author Stephan Schmidt <schst@php.net>
* stores the expiry object
* @param array options for the cache
* load a model from cache
* @param string model type
* @param string primary key
* @param integer detail level
abstract public function load($Type, $Key, $DetailLevel);
* store model data in the cache
* @param string model type
* @param string primary key
* @param integer detail level
* @param array properties
abstract public function store($Type, $Key, $DetailLevel, $Props);
* Services_Ebay allows custom expiry objects to check the validity of
* This enables you to create a cache lifetime depending of the
* end of the auction or the version number of a category listing.
* The following expiry types have been implemented:
* @param string expiry type
* @param mixed parameters for the expiry
$className = 'Services_Ebay_Cache_ExpiryCheck_' . $type;
$this->expiry = new $className($params);
* check the validity of the cache
* @param string type of the model
* @param integer time the cache has been created
* @param array model properties
protected function isValid($Type, $ts, $props)
return $this->expiry->isValid ($Type, $ts, $props);
Documentation generated on Mon, 11 Mar 2019 15:49:46 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|