Pacific-Design.com

    
Home Index

1. Cassandra

2. Redis

Cassandra / Redis /

Redis Service


systemctl start redis.service
systemctl restart redis.service
systemctl status redis.service
systemctl enable redis.service

Redis Command Line


redis-cli
redis-server --version

echo "zrange players 0 -1" | redis-cli
echo "zadd players 5 frank 6 Boby" | redis-cli

Add Records


$ echo "sadd people kevin" | redis-cli
$ echo "sadd people thomas" | redis-cli
$ echo "sadd people duraj" | redis-cli

$ echo "srem people 1 kevin" | redis-cli

$ echo "smembers people" | redis-cli