Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
CacheInterface Interface Reference
Inheritance diagram for CacheInterface:
Cache Proxy Config Dummy Cache

Public Member Functions

 getFrontend ()
 
 load ($identifier)
 
 save ($data, $identifier, $tags=[], $lifeTime=null)
 
 remove ($identifier)
 
 clean ($tags=[])
 

Detailed Description

System cache model interface

@api

Since
100.0.2

Definition at line 15 of file CacheInterface.php.

Member Function Documentation

◆ clean()

clean (   $tags = [])

Clean cached data by specific tag

Parameters
array$tags
Returns
bool

Implemented in Proxy, and Dummy.

◆ getFrontend()

getFrontend ( )

Get cache frontend API object

Returns
\Magento\Framework\Cache\FrontendInterface

Implemented in Proxy, Cache, and Dummy.

◆ load()

load (   $identifier)

Load data from cache by id

Parameters
string$identifier
Returns
string

Implemented in Proxy, Cache, and Dummy.

◆ remove()

remove (   $identifier)

Remove cached data by identifier

Parameters
string$identifier
Returns
bool

Implemented in Proxy, Cache, and Dummy.

◆ save()

save (   $data,
  $identifier,
  $tags = [],
  $lifeTime = null 
)

Save data

Parameters
string$data
string$identifier
array$tags
int$lifeTime
Returns
bool

Implemented in Proxy, Cache, and Dummy.


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