Apply default database rules on `IServer` by mgravell · Pull Request #1468 · StackExchange/StackExchange.Redis

@mgravell

  • 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

@mgravell

…, KEYS, SCAN; this normalizes it with IDatabase[Async]

NickCraver

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 :)

@mgravell