FontSubsetCacheAdapter

Bridges a generic tc-lib-pdf CacheInterface to the font library's FontSubsetCacheInterface, so a single shared cache backend can also store font subset programs.

Namespace: Com\Tecnick\Pdf\Cache

Implements: FontSubsetCacheInterface

Final: Yes

File: FontSubsetCacheAdapter.php line 38

Bridges a generic tc-lib-pdf CacheInterface to the font library’s FontSubsetCacheInterface, so a single shared cache backend can also store font subset programs.

Tags

Methods

__construct()

File: FontSubsetCacheAdapter.php line 40

public __construct(CacheInterface $cache) : mixed

Parameters

get()

File: FontSubsetCacheAdapter.php line 44

public get(string $key) : string|null

Parameters

  • $key : string

Return values

string|null

set()

File: FontSubsetCacheAdapter.php line 53

public set(string $key, string $subsetFont) : void

Parameters

  • $key : string
  • $subsetFont : string