REDIS – get keys and values at command prompt

[ad_1]

반응형

redis-cli keys *
type <key>

and depending on the response perform:



  • for “string”: get <key>

  • for “hash”: hgetall <key>

  • for “list”: lrange <key> 0 -1

  • for “set”: smembers <key>

  • for “zset”: zrange <key> 0 -1 withscores



smembers ” munit :Pending”




SMOVE ” munit :Pending” ” munit :Confirmed” “00000000000004f49dab1fb7ff017f01a496954ff547ccb4e2ae901c77b6e521:798023e30d94c6a32353465c227aa638ad8a88aebbf74bfdd482b7af3ea205bb:291436:7p9eXttXpPXFH7z3qTf8rCyoE4TDsN38iB:1513127549:3600000000”





 


 


hgetall  ” mmm :stats”


 


hincrby ” mmm :stats” “validBlocks” -1


 


hdel “filed4”


 


flushall

반응형

[ad_2]

Source link

0 0 votes
별점
guest
4 댓글
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
S'inscrire sur Binance
S'inscrire sur Binance
3 months ago

Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

Binance推荐
Binance推荐
1 month ago

Your article helped me a lot, is there any more related content? Thanks!

Registrera
Registrera
7 days ago

Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

binance odkazov'y bonus
binance odkazov'y bonus
6 days ago

I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://accounts.binance.info/en-NG/register-person?ref=YY80CKRN

4
0
Would love your thoughts, please comment.x
()
x