Category Archives: redis

excellent resource list of all commands http://redis.io/commands

[07:29][vineeln@vnmac01:~/applications/redis-2.4.15/src]$ ./redis-cli
redis 127.0.0.1:6379> keys Billing*
1) "BillingLocks_Payment"
2) "BillingLocks_Payment_243"
3) "BillingLocks_Payment_251"
4) "BillingLocks_Payment_252"
5) "BillingLocks_Payment_253"
redis 127.0.0.1:6379> DEL Billing*
(integer) 0
redis 127.0.0.1:6379> keys __config:validation*
 1) "__config:validation.primaryPhone.matches"
 2) "__config:validation.postCode.minSize"
 3) "__config:validation.postCode.maxSize"
 4) "__config:validation.primaryPhone.blank"
 5) "__config:validation.passwordLength"
 6) "__config:validation.primaryPhone.minSize"
 7) "__config:validation.primaryPhone.maxSize"
 8) "__config:validation.forbiddenPasswords"
 9) "__config:validation.postCode.blank"
10) "__config:validation.postCode.matches"
redis 127.0.0.1:6379> keys Billing*
1) "BillingLocks_Payment"
2) "BillingLocks_Payment_243"
3) "BillingLocks_Payment_251"
4) "BillingLocks_Payment_252"
5) "BillingLocks_Payment_253"
redis 127.0.0.1:6379> flushdb
OK
redis 127.0.0.1:6379> keys Billing*
(empty list or set)
redis 127.0.0.1:6379>

deleting keys individually

./redis-cli KEYS "Billing*" | xargs ~/applications/redis-2.4.15/src/redis-cli DEL

download from redis.io

after untarring, installation instructions in redis-2.4.15/README

cd ~/applications;
tar -zxvf ~/tps/redis.io/redis-2.4.15.tar.gz;
cd redis-2.4.15;
make;
make test;
cd src;
./redis-server;

#
# in another terminal run a client that connects to redis-server..
src/redis-cli;