Download the PHP package phossa2/cache without Composer
On this page you can find all versions of the php package phossa2/cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phossa2/cache
More information about phossa2/cache
Files in phossa2/cache
Informations about the package cache
phossa2/cache [ABANDONED]
Please use phoole/cache instead.
phossa2/cache is a PSR-6 compliant caching library for PHP. It supports various drivers and useful features like bypass, encrypt, stampede protection etc.
It requires PHP 5.4, supports PHP 7.0+ and HHVM. It is compliant with PSR-1, PSR-2, PSR-3, PSR-4, PSR-6 and the proposed PSR-5.
Installation
Install via the composer
utility.
or add the following lines to your composer.json
Features
-
Fully PSR-6 compliant.
-
Support all serializable PHP datatypes.
-
Extensions included:
-
Bypass: If sees a trigger in URL (e.g. '?nocache=true'), bypass the cache.
-
Stampede Protection: Whenever cached object's lifetime is less than a configurable time, by a configurable percentage, the cache will return false on 'isHit()' which will trigger re-generation of the object.
-
Encrypt: A simple extension to encrypt the serialized content.
- DistributedExpiration: Even out the spikes of item misses by alter expiration time a little bit.
-
-
Drivers
- StorageDriver
The storage driver uses phossa2/storage local or cloud storage.
- NullDriver
The blackhole driver, can be used as fallback driver for all other drivers.
Usage
-
Simple usage
-
Specify the driver
- Use extensions
Change log
Please see CHANGELOG from more information.
Testing
Contributing
Please see CONTRIBUTE for more information.
Dependencies
-
PHP >= 5.4.0
-
phossa2/event >= 2.1.4
- phossa2/storage >= 2.0.0
License
All versions of cache with dependencies
psr/cache Version ^1.0
phossa2/shared Version ^2.0.27
phossa2/event Version ^2.1.6
phossa2/storage Version ^2.0.0