Apply default database rules on `IServer` by mgravell · Pull Request #1468 · StackExchange/StackExchange.Redis
- impacts
DBSIZE,FLUSHDB,KEYS,SCAN - changes default parameter value from 0 to -1 (needs rebuild of caller to recognize, this is fine)
- adds a helper method to standardize the behavior between call-sites
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I’d suggest adding what the negative passed value was (for easier debugging - since it’s almost always logs) in the argument exception is all :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters