redis notes

redis fuzzy query and delete:

My example: Go to the src directory /usr/local/redis-2.8.17/src of the redis installation directory and execute the command

./redis-cli -h 127.0.0.1 -p 8331  KEYS "USER_PO:PHOTOS:*" | xargs redis-cli -h 127.0.0.1 -p 8331 DEL

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325570767&siteId=291194637