php-redisGet keys by pattern
$redis->keys('pattern');ctrl + c| $redisRedis object after connection | keysreturns keys that match selected pattern | 
| 'pattern'pattern to match keys | |
Usage example
<?php
$r = new Redis(); 
$r->connect('127.0.0.1', 6379);
print_r($r->keys('tes*'));output
Array
(
    [0] => test
    [1] => test2
)
More of Php Redis
- Using password to connect to Redis
- Using username and password to connect to Redis
- How to get all keys from Redis
- Save array to Redis
- Check Redis connection
- How to auto reconnect to Redis
- Using Lua scripts in Redis
- Get key value from Redis
- Redis pub/sub example
- Using Redis persistent (keepalive) connections
See more codes...