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

final class FontSubsetCacheAdapter implements FontSubsetCacheInterface

Implements: FontSubsetCacheInterface

Source: src/Cache/FontSubsetCacheAdapter.php: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.

Methods

__construct()

public __construct(CacheInterface $cache)

Parameters:

Source: src/Cache/FontSubsetCacheAdapter.php:40

get()

public get(string $key): ?string

Parameters:

  • $key (string)

Returns: ?string

Source: src/Cache/FontSubsetCacheAdapter.php:44

set()

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

Parameters:

  • $key (string)
  • $subsetFont (string)

Source: src/Cache/FontSubsetCacheAdapter.php:53