PHP 클래스 Neos\Cache\Backend\PdoBackend

상속: extends AbstractBackend, implements Neos\Cache\Backend\TaggableBackendInterface, implements IterableBackendInterface, implements Neos\Cache\Backend\PhpCapableBackendInterface, use trait RequireOnceFromValueTrait
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cacheEntriesIterator ArrayIterator
$dataSourceName string
$databaseHandle PDO
$password string
$pdoDriver string
$username string

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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.

메소드 상세

collectGarbage() 공개 메소드

Does garbage collection
public collectGarbage ( ) : void
리턴 void

connect() 보호된 메소드

Connect to the database
protected connect ( ) : void
리턴 void

createCacheTables() 보호된 메소드

Creates the tables needed for the cache backend.
protected createCacheTables ( ) : void
리턴 void

current() 공개 메소드

Returns the data of the current cache entry pointed to by the cache entry iterator.
public current ( ) : mixed
리턴 mixed

findIdentifiersByTag() 공개 메소드

Finds and returns all cache entry identifiers which are tagged by the specified tag.
public findIdentifiersByTag ( string $tag ) : array
$tag string The tag to search for
리턴 array An array with identifiers of all matching entries. An empty array if no entries matched

flush() 공개 메소드

Removes all cache entries of this cache.
public flush ( ) : void
리턴 void

flushByTag() 공개 메소드

Removes all cache entries of this cache which are tagged by the specified tag.
public flushByTag ( string $tag ) : void
$tag string The tag the entries must have
리턴 void

get() 공개 메소드

Loads data from the cache.
public get ( string $entryIdentifier ) : mixed
$entryIdentifier string An identifier which describes the cache entry to load
리턴 mixed The cache entry's content as a string or FALSE if the cache entry could not be loaded

getNotExpiredStatement() 보호된 메소드

Returns an SQL statement that evaluates to true if the entry is not expired.
protected getNotExpiredStatement ( ) : string
리턴 string

has() 공개 메소드

Checks if a cache entry with the specified identifier exists.
public has ( string $entryIdentifier ) : boolean
$entryIdentifier string An identifier specifying the cache entry
리턴 boolean TRUE if such an entry exists, FALSE if not

initializeObject() 공개 메소드

Initialize the cache backend.
public initializeObject ( ) : void
리턴 void

key() 공개 메소드

Returns the identifier of the current cache entry pointed to by the cache entry iterator.
public key ( ) : string
리턴 string

next() 공개 메소드

Move forward to the next cache entry.
public next ( ) : void
리턴 void

remove() 공개 메소드

Usually this only affects one entry but if - for what reason ever - old entries for the identifier still exist, they are removed as well.
public remove ( string $entryIdentifier ) : boolean
$entryIdentifier string Specifies the cache entry to remove
리턴 boolean TRUE if (at least) an entry could be removed or FALSE if no entry was found

rewind() 공개 메소드

Rewinds the cache entry iterator to the first element and fetches cacheEntries.
public rewind ( ) : void
리턴 void

set() 공개 메소드

Saves data in the cache.
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.
리턴 void

setDataSourceName() 공개 메소드

Sets the DSN to use
public setDataSourceName ( string $DSN ) : void
$DSN string The DSN to use for connecting to the DB
리턴 void

setPassword() 공개 메소드

Sets the password to use
public setPassword ( string $password ) : void
$password string The password to use for connecting to the DB
리턴 void

setUsername() 공개 메소드

Sets the username to use
public setUsername ( string $username ) : void
$username string The username to use for connecting to the DB
리턴 void

valid() 공개 메소드

Checks if the current position of the cache entry iterator is valid.
public valid ( ) : boolean
리턴 boolean TRUE if the current position is valid, otherwise FALSE

프로퍼티 상세

$cacheEntriesIterator 보호되어 있는 프로퍼티

protected ArrayIterator $cacheEntriesIterator
리턴 ArrayIterator

$dataSourceName 보호되어 있는 프로퍼티

protected string $dataSourceName
리턴 string

$databaseHandle 보호되어 있는 프로퍼티

protected PDO $databaseHandle
리턴 PDO

$password 보호되어 있는 프로퍼티

protected string $password
리턴 string

$pdoDriver 보호되어 있는 프로퍼티

protected string $pdoDriver
리턴 string

$username 보호되어 있는 프로퍼티

protected string $username
리턴 string