Свойство | Type | Description | |
---|---|---|---|
$flags | integer | Indicates whether the memcache uses compression or not (requires zlib), either 0 or MEMCACHE_COMPRESSED | |
$identifierPrefix | string | A prefix to separate stored data from other data possible stored in the memcache | |
$memcache | Memcache | Memcached | Instance of the PHP Memcache/Memcached class | |
$servers | array | Array of Memcache server configurations |
Méthode | Description | |
---|---|---|
__construct ( |
||
collectGarbage ( ) : void | Does nothing, as memcache/memcached does GC itself | |
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 ) : integer | Removes all cache entries of this cache which are tagged by the specified tag. | |
get ( string $entryIdentifier ) : mixed | Loads data from the cache. | |
getPrefixedIdentifier ( string $entryIdentifier ) : string | Returns the internally used, prefixed entry identifier for the given public entry identifier. | |
has ( string $entryIdentifier ) : boolean | Checks if a cache entry with the specified identifier exists. | |
remove ( string $entryIdentifier ) : boolean | Removes all cache entries matching the specified identifier. | |
set ( string $entryIdentifier, string $data, array $tags = [], integer $lifetime = null ) : void | Saves data in the cache. | |
setCache ( Neos\Cache\Frontend\FrontendInterface $cache ) : void | Initializes the identifier prefix when setting the cache. |
Méthode | Description | |
---|---|---|
addIdentifierToTags ( string $entryIdentifier, array $tags ) : void | Associates the identifier with the given tags | |
findTagsByIdentifier ( string $identifier ) : array | Finds all tags for the given identifier. This function uses reverse tag index to search for tags. | |
removeIdentifierFromAllTags ( string $entryIdentifier ) : void | Removes association of the identifier with the given tags | |
setCompression ( boolean $useCompression ) : void | Setter for compression flags bit | |
setItem ( string $key, string $value, integer $expiration ) : boolean | Stores an item on the server | |
setServers ( array $servers ) : void |
Setter for servers to be used. Expects an array, the values are expected
to be formatted like " |
public __construct ( |
||
$environmentConfiguration | ||
$options | array |
public collectGarbage ( ) : void | ||
Résultat | void |
public findIdentifiersByTag ( string $tag ) : array | ||
$tag | string | The tag to search for |
Résultat | array | An array with identifiers of all matching entries. An empty array if no entries matched |
protected findTagsByIdentifier ( string $identifier ) : array | ||
$identifier | string | Identifier to find tags by |
Résultat | array | Array with tags |
public flushByTag ( string $tag ) : integer | ||
$tag | string | The tag the entries must have |
Résultat | integer | The number of entries which have been affected by this flush |
public getPrefixedIdentifier ( string $entryIdentifier ) : string | ||
$entryIdentifier | string | The short entry identifier, for example "NumberOfPostedArticles" |
Résultat | string | The prefixed identifier, for example "Flow694a5c7a43a4_NumberOfPostedArticles" |
protected removeIdentifierFromAllTags ( string $entryIdentifier ) : void | ||
$entryIdentifier | string | |
Résultat | 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 lifetime. |
Résultat | void |
protected setCompression ( boolean $useCompression ) : void | ||
$useCompression | boolean | |
Résultat | void |
protected setServers ( array $servers ) : void | ||
$servers | array | An array of servers to add. |
Résultat | void |
protected int $flags | ||
Résultat | integer |
protected string $identifierPrefix | ||
Résultat | string |
protected Memcache|Memcached $memcache | ||
Résultat | Memcache | Memcached |
protected array $servers | ||
Résultat | array |