You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The raw Redis EXISTS command returns the number of keys, out of the ones passed, that exist in the database. The v4 implementation of client.exists(), however, returns a Promise<boolean>, only returning true if all the passed keys exist.
While I understand making it boolean improves the ergonomics in many cases, this shuts out the possibility of using the command to see if any key of a list exists. (As an aside, it's also a breaking change that should have been mentioned in the migration guide.) It should probably be made to return a number again.
The text was updated successfully, but these errors were encountered:
The raw Redis EXISTS command returns the number of keys, out of the ones passed, that exist in the database. The v4 implementation of
client.exists()
, however, returns aPromise<boolean>
, only returningtrue
if all the passed keys exist.While I understand making it boolean improves the ergonomics in many cases, this shuts out the possibility of using the command to see if any key of a list exists. (As an aside, it's also a breaking change that should have been mentioned in the migration guide.) It should probably be made to return a
number
again.The text was updated successfully, but these errors were encountered: