Property | Type | Description | |
---|---|---|---|
$cacheEntriesIterator | ArrayIterator | ||
$dataSourceName | string | ||
$databaseHandle | PDO | ||
$password | string | ||
$pdoDriver | string | ||
$username | string |
Method | Description | |
---|---|---|
collectGarbage ( ) : void | Does garbage collection | |
current ( ) : mixed | Returns the data of the current cache entry pointed to by the cache entry iterator. | |
findIdentifiersByTag ( string $tag ) : array | Finds and returns all cache entry identifiers which are tagged by the specified tag. | |
flush ( ) : void | Removes all cache entries of this cache. | |
flushByTag ( string $tag ) : void | Removes all cache entries of this cache which are tagged by the specified tag. | |
get ( string $entryIdentifier ) : mixed | Loads data from the cache. | |
has ( string $entryIdentifier ) : boolean | Checks if a cache entry with the specified identifier exists. | |
initializeObject ( ) : void | Initialize the cache backend. | |
key ( ) : string | Returns the identifier of the current cache entry pointed to by the cache entry iterator. | |
next ( ) : void | Move forward to the next cache entry. | |
remove ( string $entryIdentifier ) : boolean | Removes all cache entries matching the specified identifier. | |
rewind ( ) : void | Rewinds the cache entry iterator to the first element and fetches cacheEntries. | |
set ( string $entryIdentifier, string $data, array $tags = [], integer $lifetime = null ) : void | Saves data in the cache. | |
setDataSourceName ( string $DSN ) : void | Sets the DSN to use | |
setPassword ( string $password ) : void | Sets the password to use | |
setUsername ( string $username ) : void | Sets the username to use | |
valid ( ) : boolean | Checks if the current position of the cache entry iterator is valid. |
Method | Description | |
---|---|---|
connect ( ) : void | Connect to the database | |
createCacheTables ( ) : void | Creates the tables needed for the cache backend. | |
getNotExpiredStatement ( ) : string | Returns an SQL statement that evaluates to true if the entry is not expired. |
protected createCacheTables ( ) : void | ||
return | void |
public findIdentifiersByTag ( string $tag ) : array | ||
$tag | string | The tag to search for |
return | array | An array with identifiers of all matching entries. An empty array if no entries matched |
public flushByTag ( string $tag ) : void | ||
$tag | string | The tag the entries must have |
return | void |
protected getNotExpiredStatement ( ) : string | ||
return | string |
public initializeObject ( ) : void | ||
return | void |
public set ( string $entryIdentifier, string $data, array $tags = [], integer $lifetime = null ) : void | ||
$entryIdentifier | string | An identifier for this specific cache entry |
$data | string | The data to be stored |
$tags | array | Tags to associate with this cache entry |
$lifetime | integer | Lifetime of this cache entry in seconds. If NULL is specified, the default lifetime is used. "0" means unlimited liftime. |
return | void |
public setDataSourceName ( string $DSN ) : void | ||
$DSN | string | The DSN to use for connecting to the DB |
return | void |
public setPassword ( string $password ) : void | ||
$password | string | The password to use for connecting to the DB |
return | void |
public setUsername ( string $username ) : void | ||
$username | string | The username to use for connecting to the DB |
return | void |
protected ArrayIterator $cacheEntriesIterator | ||
return | ArrayIterator |