tinson / memory-cache
PHP Memory Cache Library
v1.0.0
2019-12-18 03:01 UTC
Requires
- php: >=5.6
- nesbot/carbon: ~1.20
- psr/simple-cache: ~1.0.1
Requires (Dev)
- phpunit/phpunit: 5.7.27
This package is not auto-updated.
Last update: 2025-03-21 05:04:32 UTC
README
PHP Memory Cache Library implements CacheInterface PSR-16
Quick Start
# New an cache instance
# 构建一个实例
$cache = new \MemoryCache\Cache();
$cache->set($key, $value, $ttle);
$cache->get($key);