Property | Type | Description | |
---|---|---|---|
$cache | array | All gets/sets will be cached in this array for faster access during multiple get() calls on the same key. | |
$instance | Contains the current class instance. |
Property | Type | Description | |
---|---|---|---|
$cacheConfig | |||
$config | array | All config values as array. | |
$eventDispatcher |
Method | Description | |
---|---|---|
__construct ( ) | Constructor. | |
configure ( |
||
delete ( string $key ) : boolean | Deletes the cache for specified cache-key. | |
deleteInvalidate ( string $key ) | Removes a invalidation | |
get ( string $key ) : mixed | Returns data of the specified cache-key. | |
getEventDispatcher ( ) : mixed | ||
getInvalidate ( string $key ) : integer | null | Returns latest invalidation timestamp for the given $key. | |
invalidate ( string $key, boolean | integer $time = null ) : boolean | Marks a code as invalidate until $time. | |
set ( string $key, mixed $value, integer $lifeTime = 3600, boolean $withoutValidationData = false ) : boolean | Stores data to the specified cache-key. | |
setEventDispatcher ( mixed $eventDispatcher ) | ||
setup ( $config ) | Connects to Server, prepared Folder structure, etc. | |
testConfig ( array $config ) : boolean | Test the cache driver whether the config values are correct and useable or not. |
Method | Description | |
---|---|---|
doDelete ( string $pKey ) | Deletes data for a key. | |
doGet ( string $pKey ) : mixed | false | Gets the data for a key. | |
doSet ( string $pKey, mixed $pValue, integer $pTimeout = null ) : boolean | Sets data for a key with a timeout. |
public configure ( |
||
$cacheConfig |
public deleteInvalidate ( string $key ) | ||
$key | string |
public set ( string $key, mixed $value, integer $lifeTime = 3600, boolean $withoutValidationData = false ) : boolean | ||
$key | string | |
$value | mixed | Do not pass objects, use serialize if you want to store php objects |
$lifeTime | integer | In seconds. Default is one hour |
$withoutValidationData | boolean | |
return | boolean |
public setEventDispatcher ( mixed $eventDispatcher ) | ||
$eventDispatcher | mixed |
public testConfig ( array $config ) : boolean | ||
$config | array | |
return | boolean | returns true if everything is fine, if not it should throw an exception with the detailed issue. |
public array $cache | ||
return | array |
protected Cache,Jarves\Configuration $cacheConfig | ||
return |