SkillAgentSearch skills...

Cache

A fiber-aware cache API based on Amp and Revolt.

Install / Use

/learn @amphp/Cache
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

amphp/cache

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

View on GitHub
GitHub Stars127
CategoryDevelopment
Updated20d ago
Forks16

Languages

PHP

Security Score

100/100

Audited on Mar 4, 2026

No findings