PHPackages                             mjohann/simple-redis - 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. mjohann/simple-redis

ActiveLibrary[Caching](/categories/caching)

mjohann/simple-redis
====================

Simple Redis is a PHP class that provides a practical and reusable abstraction for working with Redis. It allows you to easily create connections and perform common operations such as set, get, del, list, pub, sub and many others, without worrying about the underlying configuration complexity.

v1.1.0(1y ago)017MITPHPPHP ^8.0

Since Apr 18Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (3)Used By (0)

[Simple Redis](https://github.com/matheusjohannaraujo/simple-redis)
===================================================================

[](#simple-redis)

**SimpleRedis** is a PHP class that offers a practical and reusable abstraction for working with Redis. It allows you to easily establish connections and perform common operations, as outlined in the features section — all without the need to worry about the underlying configuration complexity.

📦 Installation
--------------

[](#-installation)

You can install the library via [Packagist/Composer](https://packagist.org/packages/mjohann/simple-redis):

```
composer require mjohann/simple-redis
```

⚙️ Requirements
---------------

[](#️-requirements)

- PHP 8.0 or higher

🚀 Features
----------

[](#-features)

- SimpleRedis uses [`predis/predis`](https://packagist.org/packages/predis/predis) as a dependency
- Supported:
    - `set`
    - `get`
    - `del`
    - `list`
    - `pub`
    - `sub`

🧪 Usage Example
---------------

[](#-usage-example)

```
