stefna/prefixed-redis

Prefixed Redis client

Installs: 672

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 1

Open Issues: 0

pkg:composer/stefna/prefixed-redis

1.2.1 2023-10-11 08:29 UTC

This package is auto-updated.

Last update: 2025-10-11 12:39:48 UTC


README

A \Redis implementation that has better prefix support.

Usage

$redis = new \Stefna\Redis\PrefixedRedis('prefix.');
$redis->set('a', 'b'); // sets "prefix.a" to "b"
$redis->flushDb(); // removes all keys in database with keys like 'prefix.*'
// Same as:
$redis->deleteAll();
// And (for now at least)
$redis->flushAll(); // Does not run on all databases (only current)