amphp/cache
最新稳定版本:v2.0.1
Composer 安装命令:
composer require amphp/cache
包简介
A fiber-aware cache API based on Amp and Revolt.
README 文档
README
AMPHP is a collection of event-driven libraries for PHP designed with fibers and concurrency in mind.
amphp/cache specifically provides a cache interface and multiple implementations of it.
Installation
This package can be installed as a Composer dependency.
composer require amphp/cache
Usage
AtomicCache
Cache
<?php namespace Amp\Cache; interface Cache { public function get(string $key): mixed; public function set(string $key, mixed $value, int $ttl = null): void; public function delete(string $key): ?bool; }
LocalCache
NullCache
Cache implementation that just ignores all operations and always resolves to null.
PrefixCache
SerializedCache
StringCache
StringCacheAdapter
统计信息
- 总下载量: 33.62M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 122
- 点击次数: 1
- 依赖项目数: 24
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04