Bitrix API

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
$pool : Pool
$ttl : int
$cacheId : string
$cache : Cache
$eventManager : EventManager

findByExternalId()

public findByExternalId(string $externalId, string $sourceCode, string $languageId) : Location|null|bool
Parameters
$externalId : string
$sourceCode : string
$languageId : string
Tags
inheritDoc
Return values
Location|null|bool

findById()

public findById(int $locationId, string $languageId) : Location|null|bool
Parameters
$locationId : int
$languageId : string
Tags
inheritDoc
Return values
Location|null|bool

isScopeSatisfy()

Check is scope satisfy

public isScopeSatisfy(int $scope) : bool
Parameters
$scope : int
Tags
inheritDoc
Return values
bool

saveDataToCache()

public saveDataToCache() : void

        
On this page

Search results