nsc / cache
cache
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/nsc/cache
Requires
- php: >=5.5
- phpunit: >=4.8.7
- xcache: >=3.1.0
This package is not auto-updated.
Last update: 2020-01-05 14:30:34 UTC
README
Cache connects and manages database based on application programming interface (API)
Highlights
- Simple API
- Composer ready, [PSR-2] and [PSR-4] compliant
- Fully documented
- Demo
System Requirements
You need:
- PHP >= 5.5 , but the latest stable version of PHP is recommended
to use the library.
-Xcache>=3.1.0
Install
Install nsc\cache using Composer.
$ composer require nsc/cache
Config
$config = [
'GROUP' => 'ceShi',
];
Basic Usage
include("../vendor/autoload.php");
$cache = \Nsc\cache\Cache::getInstance($config);
$a = 'nsc';
$arr = array(1,2,3,4,5,6);
$cache->set($a,$arr);
var_dump($cache->get($a));