Skip to content

A cache package which supports File,Redis,Memcached and APCU.

License

Notifications You must be signed in to change notification settings

next-laboratory/cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Max

轻量 • 简单 • 快速

起步

符合Psr16的缓存组件,支持File,Memcached,Redis,Apcu驱动。协程环境下需要自定义驱动

安装

composer require next/cache

使用

<?php

use Next\Cache\Cache;

$cache = new \Next\Cache\Cache(new \Next\Cache\Driver\FileDriver('./runtime/cache'))
//设置缓存
$cache->set('stat', 12, 10);
//读取缓存
var_dump($cache->get('stat'));

About

A cache package which supports File,Redis,Memcached and APCU.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages