This documentation describes unreleased changes on the main branch.

VaryProvider

Interface.

use Saij\WpAppFramework\Cache\VaryProvider;

A service that provides a circumstance of your own for ServiceVary, e.g. the region of the visitor.

Methods

value()

value(): string|int|float|bool|null

The current value; each value gets a cache entry of its own.

Returns string|int|float|bool|null