Skip to content

Latest commit

 

History

History
366 lines (270 loc) · 8.34 KB

File metadata and controls

366 lines (270 loc) · 8.34 KB

BumbleDocGen / Technical description of the project / Class map / EntityCacheStorageHelper


⚠️ Is internal

namespace BumbleDocGen\Core\Parser\Entity\Cache;

final class EntityCacheStorageHelper

Initialization methods:

  1. __construct

Methods:

  1. addItemValueToCache
  2. getItemValueFromCache
  3. getItemValues
  4. getUsedCacheItemsKeys
  5. removeItemValueFromCache
  6. saveCache

Method details:

public function __construct(\BumbleDocGen\Core\Cache\EntityCacheItemPool $cacheItemPool);

Parameters:

Name Type Description
$cacheItemPool \BumbleDocGen\Core\Cache\EntityCacheItemPool -

public function addItemValueToCache(string $cacheKey, string $itemKey, mixed $value, int $expiresAfter): void;

Parameters:

Name Type Description
$cacheKey string -
$itemKey string -
$value mixed -
$expiresAfter int -

Return value: void

Throws:


public function getItemValueFromCache(string $cacheKey, string $itemKey): mixed;

Parameters:

Name Type Description
$cacheKey string -
$itemKey string -

Return value: mixed

Throws:


public function getItemValues(string $cacheKey): array;

Parameters:

Name Type Description
$cacheKey string -

Return value: array

Throws:


public function getUsedCacheItemsKeys(string $cacheKey): array;

Parameters:

Name Type Description
$cacheKey string -

Return value: array


public function removeItemValueFromCache(string $cacheKey, string $itemKey): void;

Parameters:

Name Type Description
$cacheKey string -
$itemKey string -

Return value: void


public function saveCache(): void;

Parameters: not specified

Return value: void

Throws: