ServiceVary

Class. It implements CacheVary.

use Saij\WpAppFramework\Cache\Vary\ServiceVary;

A circumstance of your own: the value of a service implementing VaryProvider.

Constructor

new ServiceVary(string $provider)
ParameterTypeDefaultDescription
providerclass-string<VaryProvider>requiredA service of yours that implements VaryProvider; its value() is part of the cache key.

Methods

getProvider()

getProvider(): string

The class of the service that provides the value.

Returns class-string<VaryProvider>