Start redis/usr/local/bin/redis-server/usr/local/redis/conf/redis.conf
Find REDIS-CLI
Find-name REDIS-CLI
Go to Redis command line
[Email protected] bin]# REDIS-CLI
127.0.0.1:6379>
Select Redis Library
127.0.0.1:6379> Select 1
Ok
View all keys under the 1 library
127.0.0.1:6379[1]> keys *
1) "Cribn.hsns.session.g0ejehnh8kh36b48mcv9v9h6o5"
2) "Cribn.hsns.5bcdd3322561a4543366e5c86c4245f0"
3) "Cribn.hsns.0a28ade61326dd457279553866d54dad"
4) "cribn.hsns.01a5a42c12a9649d525b936beddcf087"
5) "Cribn.hsns.a8975cd71aa3a48de86a43076886b5be"
6) "cribn.hsns.413ae7d6f143aac41756cfb3805ba634"
7) "Cribn.hsns.7d283d2b9a903eced1c73e2818b73e90"
8) "Cribn.hsns.f9c228f53ec7504e8aabc5040d9a4cab"
9) "cribn.hsns.5d8a9c4e7ba76c5a82c37b5d85ce6519"
"Cribn.hsns.session.1npnde9d547ck36vhhamnqsm82"
One) "CRIBN.HSNS.A4725FB26F713859E64ABB6955CD2C05"
"Cribn.hsns.8df49fc8505afabe67deb57fbc18b3ac"
"Cribn.hsns.b1b38d6668a5c00e90c945561f3ae5e9"
"Cribn.hsns.1299832f72f75ed137f478498130cd3f"
View the total number of keys under the current library
127.0.0.1:6379[1]> dbsize
(integer) 14
Redis enters command line