amphp/cache 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.

Latest Release MIT License

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

GitHub 信息

  • Stars: 122
  • Watchers: 5
  • Forks: 15
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04