PHPackages                             gryfoss/rapid-cache-client - 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. gryfoss/rapid-cache-client

ActiveLibrary[Caching](/categories/caching)

gryfoss/rapid-cache-client
==========================

Caching service

v1.1.0(5mo ago)0353MITPHPPHP ^8.2CI passing

Since Aug 22Pushed 5mo agoCompare

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

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

GryfOSS Rapid Cache Client
==========================

[](#gryfoss-rapid-cache-client)

[![Tests status](https://github.com/GryfOSS/rapid-cache-client/workflows/tests/badge.svg)](https://github.com/GryfOSS/rapid-cache-client/workflows/tests/badge.svg)[![GitHub tag (latest SemVer)](https://camo.githubusercontent.com/b3cefebc8753105ece431d6456618ecaea3750b2e12edd7f74631b500ccdfc49/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f477279664f53532f72617069642d63616368652d636c69656e743f6c6162656c3d6c617465737425323076657273696f6e26736f72743d73656d766572)](https://camo.githubusercontent.com/b3cefebc8753105ece431d6456618ecaea3750b2e12edd7f74631b500ccdfc49/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f477279664f53532f72617069642d63616368652d636c69656e743f6c6162656c3d6c617465737425323076657273696f6e26736f72743d73656d766572)

A high-performance Redis-based caching library for PHP that provides advanced caching features including tagging, queues, sets, and sorted sets. The library implements the `CacheServiceInterface` standard for caching services and offers a fast Redis implementation through `RapidCacheClient`.

Features
--------

[](#features)

- **Basic Cache Operations**: Get, set, delete, and clear cache entries
- **TTL Support**: Configurable time-to-live for cache entries
- **Tagging System**: Group cache entries by tags for bulk operations
- **Queue Operations**: FIFO queue support with enqueue/dequeue operations
- **Set Operations**: Redis set operations for unique collections
- **Sorted Sets**: Ordered collections with scoring
- **Atomic Operations**: Increment/decrement numeric values
- **Prefix Support**: Namespace your cache keys
- **Auto-reconnection**: Handles Redis connection drops gracefully

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

[](#requirements)

- PHP 8.2 or higher
- Redis extension (`ext-redis`)
- Igbinary extension (`ext-igbinary`)
- Redis server (tested with Redis 6.0+)

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

[](#installation)

Install the package via Composer:

```
composer require gryf-oss/rapid-cache-client
```

### System Requirements

[](#system-requirements)

Make sure you have the required PHP extensions installed:

```
# On Ubuntu/Debian
sudo apt-get install php-redis php-igbinary

# On CentOS/RHEL
sudo yum install php-redis php-igbinary

# Or using PECL
pecl install redis igbinary
```

Basic Usage
-----------

[](#basic-usage)

### Setting up the Client

[](#setting-up-the-client)

```
