class ModelCacheStoreValidator

Methods

__construct(RedisConfig $redisConfig)

Create a model cache store validator.

void
validate(Repository $repository, string $feature)

Validate that the store can safely cache models.

void
validateAnyModeTags(Repository $repository, string $feature)

Validate that the store supports plain-key reads with any-mode tags.

Details

at line 18
__construct(RedisConfig $redisConfig)

Create a model cache store validator.

Parameters

RedisConfig $redisConfig

at line 28
void validate(Repository $repository, string $feature)

Validate that the store can safely cache models.

Parameters

Repository $repository
string $feature

Return Value

void

Exceptions

UnsupportedModelCacheStoreException

at line 43
void validateAnyModeTags(Repository $repository, string $feature)

Validate that the store supports plain-key reads with any-mode tags.

Any-mode tags index plain cache keys without changing their storage keys. Model caches can therefore keep direct reads and per-key invalidation on the plain repository while tagged writes maintain their indexes.

Parameters

Repository $repository
string $feature

Return Value

void

Exceptions

UnsupportedModelCacheStoreException