ImageCacheAdapter

Bridges a generic tc-lib-pdf CacheInterface to the image library's ImageCacheInterface, so a single shared cache backend can also store processed image data.

Namespace: Com\Tecnick\Pdf\Cache

Implements: ImageCacheInterface

Final: Yes

File: ImageCacheAdapter.php line 40

Bridges a generic tc-lib-pdf CacheInterface to the image library’s ImageCacheInterface, so a single shared cache backend can also store processed image data.

Tags

Methods

__construct()

File: ImageCacheAdapter.php line 42

public __construct(CacheInterface $cache) : mixed

Parameters

get()

File: ImageCacheAdapter.php line 49

public get(string $key) : ImageRawData|null

Parameters

  • $key : string

Return values

ImageRawData|null

set()

File: ImageCacheAdapter.php line 65

public set(string $key, ImageRawData $data) : void

Parameters

  • $key : string
  • $data : ImageRawData