Table of contents
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
- since: 2026-06-16
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2002-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-pdf
- phpstan-import-type: ImageRawData from \Com\Tecnick\Pdf\Image\Import
Methods
__construct()
File: ImageCacheAdapter.php line 42
public __construct(CacheInterface $cache) : mixed
Parameters
- $cache : CacheInterface
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