string) $itemAttributes * @throws ezcCacheInvalidMetaDataException * if the given $metaData is not processable by this replacement * strategy. */ public static function store( ezcCacheStackStorageConfiguration $conf, ezcCacheStackMetaData $metaData, $itemId, $itemData, $itemAttributes = array() ); /** * Restores the data with the given $dataId from the storage given in $conf. * * This method takes care of restoring the item with ID $itemId and * optionally $itemAttributes from the {@link ezcCacheStackableStorage} * given in $conf. The parameters $itemId, $itemAttributes and $search are * forwarded to {@link ezcCacheStackableStorage::restore()}, the returned * value (item data on successful restore, otherwise false) are returned by * this method. * * The method must take care that the restore process is reflected in * $metaData according to the spcific replacement strategy implementation. * * @param ezcCacheStackStorageConfiguration $conf * @param ezcCacheStackMetaData $metaData * @param string $itemId * @param array(string=>string) $itemAttributes * @param bool $search * * @return mixed Restored data or false. * @throws ezcCacheInvalidMetaDataException * if the given $metaData is not processable by this replacement * strategy. */ public static function restore( ezcCacheStackStorageConfiguration $conf, ezcCacheStackMetaData $metaData, $itemId, $itemAttributes = array(), $search = false ); /** * Deletes the data with the given $itemId from the given $storage. * * This method takes care about deleting the item identified by $itemId and * optionally $itemAttributes from the {@link ezcCacheStackableStorage} * give in $conf. The parameters $itemId, $itemAttributes and $search are * therefore forwarded to {@link ezcCacheStackableStorage::delete()}. This * method returns a list of all item IDs that have been deleted by the * call. The method reflects these changes in $metaData. * * @param ezcCacheStackStorageConfiguration $conf * @param ezcCacheStackMetaData $metaData * @param string $itemId * @param array(string=>string) $itemAttributes * @param bool $search * * @return array(string) Deleted item IDs. * @throws ezcCacheInvalidMetaDataException * if the given $metaData is not processable by this replacement * strategy. */ public static function delete( ezcCacheStackStorageConfiguration $conf, ezcCacheStackMetaData $metaData, $itemId, $itemAttributes = array(), $search = false ); /** * Returns a fresh meta data object. * * Different replacement strategies will use different meta data classes. * This method must return a freshly created instance of the meta data * object used by this meta data. * * @return ezcCacheStackMetaData */ public static function createMetaData(); } ?>