PHP 클래스 Neos\Flow\Persistence\Doctrine\CacheAdapter

상속: implements Doctrine\Common\Cache\Cache
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cache Neos\Cache\Frontend\FrontendInterface
$securityContext Neos\Flow\Security\Context

공개 메소드들

메소드 설명
contains ( string $id ) : boolean Tests if an entry exists in the cache.
delete ( string $id ) : boolean Deletes a cache entry.
fetch ( string $id ) : mixed Fetches an entry from the cache.
getStats ( ) : array | null Retrieves cached information from the data store.
save ( string $id, mixed $data, integer $lifeTime ) : boolean Puts data into the cache.
setCache ( Neos\Cache\Frontend\FrontendInterface $cache ) : void Set the cache this adapter should use.

보호된 메소드들

메소드 설명
convertCacheIdentifier ( string $id ) : string

메소드 상세

contains() 공개 메소드

Tests if an entry exists in the cache.
public contains ( string $id ) : boolean
$id string The cache id of the entry to check for.
리턴 boolean TRUE if a cache entry exists for the given cache id, FALSE otherwise.

convertCacheIdentifier() 보호된 메소드

protected convertCacheIdentifier ( string $id ) : string
$id string
리턴 string

delete() 공개 메소드

Deletes a cache entry.
public delete ( string $id ) : boolean
$id string The cache id.
리턴 boolean TRUE if the cache entry was successfully deleted, FALSE otherwise.

fetch() 공개 메소드

Fetches an entry from the cache.
public fetch ( string $id ) : mixed
$id string The id of the cache entry to fetch.
리턴 mixed The cached data or FALSE, if no cache entry exists for the given id.

getStats() 공개 메소드

The server's statistics array has the following values: - hits Number of keys that have been requested and found present. - misses Number of items that have been requested and not found. - uptime Time that the server is running. - memory_usage Memory used by this server to store items. - memory_available Memory allowed to use for storage.
public getStats ( ) : array | null
리턴 array | null An associative array with server's statistics if available, NULL otherwise.

save() 공개 메소드

Puts data into the cache.
public save ( string $id, mixed $data, integer $lifeTime ) : boolean
$id string The cache id.
$data mixed The cache entry/data.
$lifeTime integer The cache lifetime. If != 0, sets a specific lifetime for this cache entry (0 => infinite lifeTime).
리턴 boolean TRUE if the entry was successfully stored in the cache, FALSE otherwise.

setCache() 공개 메소드

Set the cache this adapter should use.
public setCache ( Neos\Cache\Frontend\FrontendInterface $cache ) : void
$cache Neos\Cache\Frontend\FrontendInterface
리턴 void

프로퍼티 상세

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

protected FrontendInterface,Neos\Cache\Frontend $cache
리턴 Neos\Cache\Frontend\FrontendInterface

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

protected Context,Neos\Flow\Security $securityContext
리턴 Neos\Flow\Security\Context