Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Zend_Cache_Backend_ExtendedInterface Interface Reference
Inheritance diagram for Zend_Cache_Backend_ExtendedInterface:
Zend_Cache_Backend_Interface Database AbstractDecorator Eaccelerator Memcached MongoDb RemoteSynchronizedCache CoreTestMock Zend_Cache_Backend_Apc Zend_Cache_Backend_BlackHole Zend_Cache_Backend_File Zend_Cache_Backend_Libmemcached Zend_Cache_Backend_Memcached Zend_Cache_Backend_Test Zend_Cache_Backend_TwoLevels Zend_Cache_Backend_WinCache

Public Member Functions

 getIds ()
 
 getTags ()
 
 getIdsMatchingTags ($tags=array())
 
 getIdsNotMatchingTags ($tags=array())
 
 getIdsMatchingAnyTags ($tags=array())
 
 getFillingPercentage ()
 
 getMetadatas ($id)
 
 touch ($id, $extraLifetime)
 
 getCapabilities ()
 
- Public Member Functions inherited from Zend_Cache_Backend_Interface
 setDirectives ($directives)
 
 load ($id, $doNotTestCacheValidity=false)
 
 test ($id)
 
 save ($data, $id, $tags=array(), $specificLifetime=false)
 
 remove ($id)
 
 clean ($mode=Zend_Cache::CLEANING_MODE_ALL, $tags=array())
 

Detailed Description

Definition at line 34 of file ExtendedInterface.php.

Member Function Documentation

◆ getCapabilities()

getCapabilities ( )

Return an associative array of capabilities (booleans) of the backend

The array must include these keys :

  • automatic_cleaning (is automating cleaning necessary)
  • tags (are tags supported)
  • expired_read (is it possible to read expired cache records (for doNotTestCacheValidity option for example))
  • priority does the backend deal with priority when saving
  • infinite_lifetime (is infinite lifetime can work with this backend)
  • get_list (is it possible to get the list of cache ids and the complete list of tags)
Returns
array associative of with capabilities

Implemented in Zend_Cache_Backend_Memcached, Zend_Cache_Backend_Libmemcached, Zend_Cache_Backend_File, Database, Zend_Cache_Backend_TwoLevels, Zend_Cache_Backend_Test, Zend_Cache_Backend_Apc, Zend_Cache_Backend_WinCache, Eaccelerator, AbstractDecorator, MongoDb, RemoteSynchronizedCache, and Zend_Cache_Backend_BlackHole.

◆ getFillingPercentage()

getFillingPercentage ( )

◆ getIds()

getIds ( )

◆ getIdsMatchingAnyTags()

getIdsMatchingAnyTags (   $tags = array())

Return an array of stored cache ids which match any given tags

In case of multiple tags, a logical AND is made between tags

Parameters
array$tagsarray of tags
Returns
array array of any matching cache ids (string)

Implemented in Zend_Cache_Backend_TwoLevels, Database, Zend_Cache_Backend_File, Zend_Cache_Backend_Memcached, Zend_Cache_Backend_Libmemcached, Zend_Cache_Backend_Test, Zend_Cache_Backend_Apc, Zend_Cache_Backend_WinCache, Eaccelerator, RemoteSynchronizedCache, AbstractDecorator, Zend_Cache_Backend_BlackHole, and MongoDb.

◆ getIdsMatchingTags()

getIdsMatchingTags (   $tags = array())

Return an array of stored cache ids which match given tags

In case of multiple tags, a logical AND is made between tags

Parameters
array$tagsarray of tags
Returns
array array of matching cache ids (string)

Implemented in Zend_Cache_Backend_TwoLevels, Zend_Cache_Backend_File, Zend_Cache_Backend_Memcached, Database, Zend_Cache_Backend_Libmemcached, Zend_Cache_Backend_Test, Zend_Cache_Backend_Apc, Zend_Cache_Backend_WinCache, RemoteSynchronizedCache, Eaccelerator, AbstractDecorator, Zend_Cache_Backend_BlackHole, and MongoDb.

◆ getIdsNotMatchingTags()

getIdsNotMatchingTags (   $tags = array())

Return an array of stored cache ids which don't match given tags

In case of multiple tags, a logical OR is made between tags

Parameters
array$tagsarray of tags
Returns
array array of not matching cache ids (string)

Implemented in Zend_Cache_Backend_TwoLevels, Database, Zend_Cache_Backend_File, Zend_Cache_Backend_Memcached, Zend_Cache_Backend_Libmemcached, Zend_Cache_Backend_Test, Zend_Cache_Backend_Apc, Zend_Cache_Backend_WinCache, Eaccelerator, RemoteSynchronizedCache, AbstractDecorator, Zend_Cache_Backend_BlackHole, and MongoDb.

◆ getMetadatas()

getMetadatas (   $id)

Return an array of metadatas for the given cache id

The array must include these keys :

  • expire : the expire timestamp
  • tags : a string array of tags
  • mtime : timestamp of last modification time
Parameters
string$idcache id
Returns
array array of metadatas (false if the cache id is not found)

Implemented in Zend_Cache_Backend_Memcached, Zend_Cache_Backend_TwoLevels, Zend_Cache_Backend_Libmemcached, Database, Zend_Cache_Backend_File, Zend_Cache_Backend_Test, Zend_Cache_Backend_Apc, Zend_Cache_Backend_WinCache, Eaccelerator, AbstractDecorator, RemoteSynchronizedCache, MongoDb, and Zend_Cache_Backend_BlackHole.

◆ getTags()

getTags ( )

◆ touch()

touch (   $id,
  $extraLifetime 
)

The documentation for this interface was generated from the following file: