How does Redis get the parameter corresponding to Value in a key value?

1. I want to query according to the condition, just like the sql statement

select * from user where sex="";

how can 2.redis be implemented?

ps: uses redis, for the first time today and asks the boss to inform

Mar.21,2021

get key
set value: set a "123456"
get value: get a (get 123456)

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3831b-2c10b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3831b-2c10b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?