Download the PHP package fivepercent/cache without Composer
On this page you can find all versions of the php package fivepercent/cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package cache
Cache system
With this package you can cache any data in any storage.
Installation
Add FivePercent/Cache in your composer.json:
{
"require": {
"fivepercent/cache": "~1.0"
}
}
Now tell composer to download the library by running the command:
$ php composer.phar update fivepercent/cache
Basic usage
Available storage:
- ArrayCache Cache data in internal array. Will be destroyed after ended script.
- RedisCache Cache data in Redis storage. Store data in HASH type.
- ChainCache
- NullCache
Examples:
use FivePercent\Component\Cache\ArrayCache;
$cache = new ArrayCache();
if (!$cache->has('my_key')) {
$cache->set('my_key', 'My Value');
}
print $cache->get('my_key'); // Printing "My Value"
Symfony2
If you use Symfony2 Framework, you can use CacheClearer for clear cache.
Symfony2 ExpressionLanguage
If you use ExpressionLanguage (Symfony Component), you can use ParserCache for store ExpressionLanguage expression.
All versions of cache with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
The package fivepercent/cache contains the following files
Loading the files please wait ....