Метод | Описание | |
---|---|---|
add ( $id, $value, $expire, $dependency = null ) : boolean | Stores a value identified by a key into cache if the cache does not contain this key. | |
delete ( $id ) : boolean | Deletes a value with the specified key from cache | |
flush ( ) | Deletes all values from cache. | |
get ( $id ) : mixed | Retrieves a value from cache with a specified key. | |
getKeyPrefix ( ) : string | ||
getPrimaryCache ( ) : boolean | ||
init ( $config ) | Initializes the cache module. | |
offsetExists ( $id ) : boolean | Returns whether there is a cache entry with a specified key. | |
offsetGet ( $id ) : mixed | Retrieves the value from cache with a specified key. | |
offsetSet ( $id, $value ) | Stores the value identified by a key into cache. | |
offsetUnset ( $id ) : boolean | Deletes the value with the specified key from cache This method is required by the interface \ArrayAccess. | |
set ( $id, $value, $expire, $dependency = null ) : boolean | Stores a value identified by a key into cache. | |
setKeyPrefix ( $value ) | ||
setPrimaryCache ( $value ) |
Метод | Описание | |
---|---|---|
addValue ( $key, $value, $expire ) : boolean | Stores a value identified by a key into cache if the cache does not contain this key. | |
deleteValue ( $key ) : boolean | Deletes a value with the specified key from cache This method should be implemented by child classes to delete the data from actual cache storage. | |
generateUniqueKey ( $key ) : sring | ||
getValue ( $key ) : string | Retrieves a value from cache with a specified key. | |
setValue ( $key, $value, $expire ) : boolean | Stores a value identified by a key in cache. |
abstract protected deleteValue ( $key ) : boolean | ||
Результат | boolean | if no error happens during deletion |
public flush ( ) |
protected generateUniqueKey ( $key ) : sring | ||
Результат | sring | a key generated from the provided key which ensures the uniqueness across applications |
public getKeyPrefix ( ) : string | ||
Результат | string | a unique prefix for the keys of cached values. If it is not explicitly set, it will take the value of {@link TApplication::getUniqueID}. |
public getPrimaryCache ( ) : boolean | ||
Результат | boolean | whether this cache module is used as primary/system cache. A primary cache is used by PRADO core framework to cache data such as parsed templates, themes, etc. |
public init ( $config ) |
public offsetExists ( $id ) : boolean | ||
Результат | boolean |
public offsetSet ( $id, $value ) |
public offsetUnset ( $id ) : boolean | ||
Результат | boolean | if no error happens during deletion |