class ApcuBackendFactory implements CacheFactoryInterface (View source)

Properties

protected string $sitePrefix

The site prefix string.

protected CacheTagsChecksumInterface $checksumProvider

The cache tags checksum provider.

protected string $backendClass

The APCU backend class to use.

Methods

__construct(string $root, string $site_path, CacheTagsChecksumInterface $checksum_provider)

Constructs an ApcuBackendFactory object.

get(string $bin)

Gets ApcuBackend for the specified cache bin.

Details

__construct(string $root, string $site_path, CacheTagsChecksumInterface $checksum_provider)

Constructs an ApcuBackendFactory object.

Parameters

string $root

The app root.

string $site_path

The site path.

CacheTagsChecksumInterface $checksum_provider

The cache tags checksum provider.

CacheBackendInterface get(string $bin)

Gets ApcuBackend for the specified cache bin.

Parameters

string $bin

The cache bin for which a cache backend object should be returned.

Return Value

CacheBackendInterface

The cache backend object associated with the specified bin.