PHPackages                             jelix/php-redis-plugin - 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. jelix/php-redis-plugin

ActiveJelix-module[Caching](/categories/caching)

jelix/php-redis-plugin
======================

Redis plugins for Jelix, using a pure PHP Redis API

1.7.8(3y ago)03.6kLGPL-2.1-or-laterPHP

Since May 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/jelix/php-redis-plugin)[ Packagist](https://packagist.org/packages/jelix/php-redis-plugin)[ Docs](http://jelix.org)[ RSS](/packages/jelix-php-redis-plugin/feed)WikiDiscussions master Synced 1mo ago

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

Plugins for Jelix to access to Redis through jKVDb (the nosql API of Jelix) and jCache.

These plugins are using the library [php-redis](https://github.com/jelix/php-redis), a pure PHP library to connect to Redis.

You may want to use these plugins if you cannot use Redis plugins provided into Jelix 1.7+, that use the API of the [Redis extension](https://github.com/phpredis/phpredis).

These plugins are for Jelix 1.7.x and higher. See the jelix/jelix repository to see their history before Jelix 1.7.

installation
------------

[](#installation)

Install it by hands like any other Jelix plugins, or use Composer if you installed Jelix 1.7+ with Composer.

In your project:

```
composer require "jelix/php-redis-plugin"

```

You can use the plugins. There name is "redis\_php".

configuration
-------------

[](#configuration)

For the configuration, indicate a `host` and a `port` parameter in the profiles.ini.php file. The `db` parameter is optional (default is 0) and should indicate the number of the database to use into Redis.

Example of profiles:

```
; for jkvdb
[jkvdb:myredis]
driver=redis_php
host = localhost
port = 6379
db=3

; for jcache
[jcache:myredis]
driver=redis_php
host = localhost
port = 6379
```

This driver supports the `jIKVttl` interface.

Other parameter configuration:

- `key_prefix`: indicate a name in it, and all keys will be prepend by this name
- `key_prefix_flush_method`: when a key\_prefix is set, indicates how the flush should be made, as deletion can be very expensive in resources. Possible values are
    - `direct`: keys are directly deleted, one after one. Warning: this can be very time expensive. Use it only if you know you are using only few keys.
    - `jcacheredisworker` for a jCache profile, or `jkvdbredisworker` for a jKvDb driver: It pushes the prefix into a 'list' value in Redis. Keys then should be delete by an other process/worker. Such worker is provided in jelix (see lib/jelix/core-modules/jelix/controllers/redisworker.cmdline.php)
    - `event`: a jelix event is notified (`jCacheRedisFlushKeyPrefix` for jCache, or `jKvDbRedisFlushKeyPrefix` for jKvDb). Up to you to create a listener that will delete the keys in the manner you want. Event parameters: `prefix` indicates the prefix of keys to delete, `profile`indicate the jCache/jKvdb to use for the connection.

unit tests
----------

[](#unit-tests)

Unit tests are in Testapp, in the jelix/jelix repository.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 95.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~350 days

Recently: every ~609 days

Total

9

Last Release

1212d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ae8142be36568660282368ce7c1eec904ecbc515ab5b58c759a487f3a6f1d114?d=identicon)[laurentj](/maintainers/laurentj)

![](https://www.gravatar.com/avatar/baa42c7323bbc9245b0c70f770031383879941a1a813f678f2835699fd50b375?d=identicon)[mdouchin](/maintainers/mdouchin)

---

Top Contributors

[![laurentj](https://avatars.githubusercontent.com/u/336034?v=4)](https://github.com/laurentj "laurentj (23 commits)")[![rldhont](https://avatars.githubusercontent.com/u/1575538?v=4)](https://github.com/rldhont "rldhont (1 commits)")

---

Tags

redisjelixjkvdbjcache

### Embed Badge

![Health badge](/badges/jelix-php-redis-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/jelix-php-redis-plugin/health.svg)](https://phpackages.com/packages/jelix-php-redis-plugin)
```

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[clue/redis-protocol

A streaming Redis protocol (RESP) parser and serializer written in pure PHP.

5211.0M13](/packages/clue-redis-protocol)[cache/redis-adapter

A PSR-6 cache implementation using Redis (PhpRedis). This implementation supports tags

523.9M27](/packages/cache-redis-adapter)[enqueue/redis

Message Queue Redis Transport

405.5M25](/packages/enqueue-redis)[kdyby/redis

Redis storage for Nette Framework

491.6M2](/packages/kdyby-redis)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
