marko/cache-array
最新稳定版本:0.6.0
Composer 安装命令:
composer require marko/cache-array
包简介
In-memory array cache driver for Marko Framework
README 文档
README
In-memory cache driver — stores data for the duration of a single request with zero I/O overhead.
Installation
composer require marko/cache-array
Quick Example
use Marko\Cache\Contracts\CacheInterface; class ExpensiveService { public function __construct( private CacheInterface $cache, ) {} public function compute(string $key): array { if ($this->cache->has($key)) { return $this->cache->get($key); } $result = $this->doExpensiveWork($key); $this->cache->set($key, $result); return $result; } }
Documentation
Full usage, API reference, and examples: marko/cache-array
统计信息
- 总下载量: 38
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-24