Installation
Install Cache with Composer.
shell
composer require raxos/cacheRequirements
- PHP 8.5 or newer.
- The following PHP extensions:
ext-redis
RedisCache throws a RedisImplementationMissingException when the Redis class is not available on the system, so make sure the extension is loaded before you construct a client.
Raxos dependencies
Cache builds on a few other Raxos packages:
- raxos/contract: defines the public interfaces (
RedisCacheInterface,RedisTaggedCacheInterfaceandRedisCacheExceptionInterface). - raxos/error: provides the base
Exceptionclass that every cache exception extends. - raxos/foundation: shared utilities used across the Raxos ecosystem.
Return to the Cache introduction.