3

I wonder is there any method to completely delete a set in the StackExchange.Redis library?

As I know there is a method in Redis : Empty/delete a set in Redis?

Thanks

7
  • "is there any method to completely delete a Set..." -- You literally linked to a question that tells you to use DEL. What are you actually asking then because I do not understand your issue. Commented Jun 26, 2018 at 18:43
  • 1
    I want a method in StackExchange.Redis library not a command in Redis. Commented Jun 26, 2018 at 20:42
  • 1
    I believe you want KeyDelete. As seen in the github repo the comments for this method indicate its the same as DEL Commented Jun 26, 2018 at 20:47
  • KeyDelete just deletes a single Key/Value, I want to delete a Set with all keys inside it. Commented Jun 26, 2018 at 21:42
  • 1
    Have you tried it? Based on the question you linked ‘DEL setName’ should work. I know the documentation says “Key” but the docs also say this is equivalent to DEL Commented Jun 27, 2018 at 4:13

1 Answer 1

4

The KeyDelete method should be what you’re looking for. As seen in the repo the comments indicate it functions the same as DEL

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.