PHPackages                             highperapp/cache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. highperapp/cache

ActiveLibrary[Caching](/categories/caching)

highperapp/cache
================

High-performance caching library with Rust FFI acceleration and AMPHP async support

1.0(9mo ago)00MITPHPPHP ^8.3|^8.4

Since Jul 27Pushed 9mo agoCompare

[ Source](https://github.com/highperapp/cache)[ Packagist](https://packagist.org/packages/highperapp/cache)[ RSS](/packages/highperapp-cache/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (10)Versions (2)Used By (0)

HighPer Cache
=============

[](#highper-cache)

High-Performance Cache Manager with Redis, Memcached, and in-memory support for ultra-fast data access with Rust FFI optimization and PHP 8.3+ support.

Features
--------

[](#features)

- 🚀 **Multi-Driver Support**: Redis, Memcached, Valkey, Dragonfly, AWS ElastiCache, and in-memory caching
- ⚡ **Async Operations**: Non-blocking cache operations with AMPHP v3 and revolt/eventloop
- 🦀 **Rust FFI Integration**: High-performance Rust FFI with transparent fallback to pure PHP
- 🔄 **Auto-Expiration**: TTL-based cache expiration management
- 📊 **Cache Statistics**: Performance metrics and hit/miss ratios
- 🧮 **Serialization**: Automatic data serialization/deserialization
- 🔧 **Configurable**: Environment-driven configuration
- 🎯 **Interface-Driven**: Clean architecture with no abstract classes
- 🌐 **Cluster Support**: Redis Cluster, Sentinel, and replica configurations
- 📦 **Session Store**: Full session handler with locking and metadata
- 🔀 **HTTP Middleware**: PSR-15 compatible cache middleware
- 📋 **PSR-16 Compatible**: Simple Cache Interface compliance

Installation
------------

[](#installation)

```
composer require highperapp/cache
```

Requirements
------------

[](#requirements)

- **PHP 8.3+** (with 8.4 support)
- **AMPHP v3+** with revolt/eventloop
- **Optional**: Rust FFI for maximum performance
- **Redis server** (for Redis driver)
- **Memcached server** (for Memcached driver)

Quick Start
-----------

[](#quick-start)

```
