KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Maybe I'm just blind, but I don't see an explicit set command in Redis for emptying an existing set (without emptying the entire database). For the time being, I'm doing a set difference on the set with itself and storing it back into itself: redis> SMEMBERS metasyn 1) "foo" 2) "bar" redis> SDIFFSTORE metasyn metasyn metasyn (integer) 0 redis> SMEMBERS metasyn (empty list or set) But that looks a little silly... is there a better way to do this?
Tags (comma-separated)
Save Edits
Cancel