Download the PHP package keruald/cache without Composer
On this page you can find all versions of the php package keruald/cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download keruald/cache
More information about keruald/cache
Files in keruald/cache
Download keruald/cache
More information about keruald/cache
Files in keruald/cache
Please rate this library. Is it a good library?
Informations about the package cache
keruald/cache
This library offers a simple layer of abstraction for cache operations, with concrete implementations.
This cache implementation is compatible with PSR-16.
This cache implementation is NOT compatible with PSR-6.
Configuration
To get a cache instance, you need to pass configuration as an array.
The properties and values depend on the engine you want to use.
Memcached
| Key | Value | Default |
|---|---|---|
| engine | MemcachedCache class reference | |
| server | The memcached hostname | "localhost" |
| port | The memcached port | 11211 |
| sasl_username | The SASL username | |
| sasl_password | The SASL password | "" |
Redis
| Key | Value | Default |
|---|---|---|
| engine | MemcachedCache class reference | |
| server | The memcached hostname | "localhost" |
| port | The memcached port | 6379 |
| database | The redis database number | 0 |
Void
This cache allows unit tests or to offer a default cache, when no other configuration is offered.
| Key | Value |
|---|---|
| engine | VoidCache class reference |
All versions of cache with dependencies
PHP Build Version
Package Version
Requires
keruald/omnitools Version
^0.16
The package keruald/cache contains the following files
Loading the files please wait ...