Misterhex
Misterhex

Reputation: 939

How to flushdb using StackExchange.Redis?

Is there a way to delete all keys in redis using stackexchange.redis?

I am trying to flush my redis database in my unit test setup.

Thanks.

Upvotes: 13

Views: 4865

Answers (1)

Marc Gravell
Marc Gravell

Reputation: 1062770

Basically, it is on IServer.

For reasons and more information, please see Where are KEYS, SCAN, FLUSHDB etc?, which is linked from the project home page, under "Documentation":

enter image description here

Upvotes: 18

Related Questions