Cache extends Cache implements IRepository, ICache, IFindById, IFindByExternalId, ISave, IDelete, IScope
Class Cache
Table of Contents
Interfaces
- IRepository
- Interface IRepository
- ICache
- Interface ICache
- IFindById
- Interface IFindById
- IFindByExternalId
- Interface IFindByExternalId
- ISave
- Interface ISave
- IDelete
- Interface IDelete
- IScope
Methods
- __construct() : mixed
- CachePool constructor.
- delete() : Result
- findByExternalId() : Location|null|bool
- findById() : Location|null|bool
- isScopeSatisfy() : bool
- Check is scope satisfy
- save() : AddResult|UpdateResult
- saveDataToCache() : void
Methods
__construct()
CachePool constructor.
public
__construct(Pool $pool, int $ttl, string $cacheId, Cache $cache, EventManager $eventManager) : mixed
Parameters
delete()
public
delete(Location $location) : Result
Parameters
- $location : Location
Return values
ResultfindByExternalId()
public
findByExternalId(string $externalId, string $sourceCode, string $languageId) : Location|null|bool
Parameters
- $externalId : string
- $sourceCode : string
- $languageId : string
Tags
Return values
Location|null|boolfindById()
public
findById(int $locationId, string $languageId) : Location|null|bool
Parameters
- $locationId : int
- $languageId : string
Tags
Return values
Location|null|boolisScopeSatisfy()
Check is scope satisfy
public
isScopeSatisfy(int $scope) : bool
Parameters
- $scope : int
Tags
Return values
boolsave()
public
save(Location $location) : AddResult|UpdateResult
Parameters
- $location : Location
Tags
Return values
AddResult|UpdateResultsaveDataToCache()
public
saveDataToCache() : void