dev-master
9999999-devSimple cache library for PHP built on top of PSR-16.
MIT
The Requires
v1.0
1.0.0.0Simple cache library for PHP built on top of PSR-16.
MIT
The Requires
Wallogit.com
2017 © Pedro Peláez
Simple cache library for PHP built on top of PSR-16.
PHP Cache library built by PSR-16 simple cache interface, (*1)
You can find implementations of the specification by looking for packages providing the psr/simple-cache-implementation virtual package., (*2)
composer require previewtechs/simple-cache:dev-master
test.php in your root directory and add these following codes: <?php
require "vendor/autoload.php";
$cache = new Memcached();
$cache->addServers([
['localhost', 11211, 1]
]);
$cache = new Previewtechs\SimpleCache\Memcached($cache);
// Set Cache key.
$data = [
'sample' => 'data',
'another' => 'data'
];
$cache->set('your_custom_key', $data);
// Check cached key exists or not.
$cache->has('your_custom_key');
// Get Cached key data.
$cache->get('your_custom_key');
php test.php
Simple cache library for PHP built on top of PSR-16.
MIT
Simple cache library for PHP built on top of PSR-16.
MIT