PHP 인터페이스 Neos\Cache\Frontend\FrontendInterface

파일 보기 프로젝트 열기: neos/flow-development-collection 0 사용 예제들

공개 메소드들

메소드 설명
collectGarbage ( ) : void Does garbage collection
flush ( ) : void Removes all cache entries of this cache.
flushByTag ( string $tag ) : integer Removes all cache entries of this cache which are tagged by the specified tag.
get ( string $entryIdentifier ) : mixed Finds and returns data from the cache.
getBackend ( ) : Neos\Cache\Backend\BackendInterface Returns the backend used by this cache
getByTag ( string $tag ) : array Finds and returns all cache entries which are tagged by the specified tag.
getIdentifier ( ) : string Returns this cache's identifier
has ( string $entryIdentifier ) : boolean Checks if a cache entry with the specified identifier exists.
isValidEntryIdentifier ( string $identifier ) : boolean Checks the validity of an entry identifier. Returns true if it's valid.
isValidTag ( string $tag ) : boolean Checks the validity of a tag. Returns true if it's valid.
remove ( string $entryIdentifier ) : boolean Removes the given cache entry from the cache.
set ( string $entryIdentifier, mixed $data, array $tags = [], integer $lifetime = null ) : void Saves data in the cache.

메소드 상세

collectGarbage() 공개 메소드

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

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 ) : integer
$tag string The tag the entries must have
리턴 integer The number of entries which have been affected by this flush or NULL if the number is unknown

get() 공개 메소드

Finds and returns data from the cache.
public get ( string $entryIdentifier ) : mixed
$entryIdentifier string Something which identifies the cache entry - depends on concrete cache
리턴 mixed

getBackend() 공개 메소드

Returns the backend used by this cache
public getBackend ( ) : Neos\Cache\Backend\BackendInterface
리턴 Neos\Cache\Backend\BackendInterface The backend used by this cache

getByTag() 공개 메소드

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

getIdentifier() 공개 메소드

Returns this cache's identifier
public getIdentifier ( ) : string
리턴 string The identifier for this cache

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

isValidEntryIdentifier() 공개 메소드

Checks the validity of an entry identifier. Returns true if it's valid.
public isValidEntryIdentifier ( string $identifier ) : boolean
$identifier string An identifier to be checked for validity
리턴 boolean

isValidTag() 공개 메소드

Checks the validity of a tag. Returns true if it's valid.
public isValidTag ( string $tag ) : boolean
$tag string A tag to be checked for validity
리턴 boolean

remove() 공개 메소드

Removes the given cache entry from the cache.
public remove ( string $entryIdentifier ) : boolean
$entryIdentifier string An identifier specifying the cache entry
리턴 boolean TRUE if such an entry exists, FALSE if not

set() 공개 메소드

Saves data in the cache.
public set ( string $entryIdentifier, mixed $data, array $tags = [], integer $lifetime = null ) : void
$entryIdentifier string Something which identifies the data - depends on concrete cache
$data mixed The data to cache - also depends on the concrete cache implementation
$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 lifetime.
리턴 void