stefna / prefixed-redis
Prefixed Redis client
1.2.1
2023-10-11 08:29 UTC
Requires
- php: >=7.1.0
- ext-redis: ^4.1|^5.0
Requires (Dev)
- phpunit/phpunit: ^7.1
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)