Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\Cache\FrontendInterface $cache, \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy, $cacheIdPrefix='', array $cacheTags=[], $cacheLifetime=null, SerializerInterface $serializer=null) | |
fetchAll (Select $select, array $bindParams=[]) | |
Protected Member Functions | |
_getSelectCacheId ($select) | |
Protected Attributes | |
$_cacheIdPrefix = '' | |
$_cacheTags = [] | |
$_cacheLifetime = null | |
Retrieve collection data from cache, fail over to another fetch strategy, if cache does not exist yet
__construct | ( | \Magento\Framework\Cache\FrontendInterface | $cache, |
\Magento\Framework\Data\Collection\Db\FetchStrategyInterface | $fetchStrategy, | ||
$cacheIdPrefix = '' , |
|||
array | $cacheTags = [] , |
||
$cacheLifetime = null , |
|||
SerializerInterface | $serializer = null |
||
) |
Constructor
\Magento\Framework\Cache\FrontendInterface | $cache | |
\Magento\Framework\Data\Collection\Db\FetchStrategyInterface | $fetchStrategy | |
string | $cacheIdPrefix | |
array | $cacheTags | |
int | bool | null | $cacheLifetime | |
SerializerInterface | null | $serializer |
Definition at line 57 of file Cache.php.
|
protected |
fetchAll | ( | Select | $select, |
array | $bindParams = [] |
||
) |
{Retrieve all records
Select | $select | |
array | $bindParams |
Implements FetchStrategyInterface.
Definition at line 76 of file Cache.php.