ovr / cacher
Cache your data by easy way.
Installs: 658
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ovr/cacher
Requires
- php: ~5.4
Requires (Dev)
- lavoiesl/php-benchmark: 1.4
- phpunit/phpunit: ~4.2
- squizlabs/php_codesniffer: 1.5.2
Suggests
- ext-memcache: To use Driver\Memcache
- ext-memcached: To use Driver\Memcached
- ext-redis: To use Driver\Redis
This package is not auto-updated.
Last update: 2019-01-08 21:28:46 UTC
README
Cache your data by easy way.
Drivers support:
- Memcache
- Memcached
- Redis
- NativeArray
How to install
Using Composer (recommended)
composer require ovr/cacher:*
How to work
You need to create instance of Driver
use Cacher\Driver\NativeArray; $driver = new NativeArray;
Example:
$driver->save('my_test_key', 12345); $result = $driver->get('my_test_key'); var_dump($result === 12345),
License
This project is open-sourced software licensed under the MIT License. See the LICENSE file for more information.