jambonz / realtimedb-helpers

utility functions for querying jambonz redis database
0 stars 9 forks source link

Add helper function to only decrement a key if it exists #60

Closed technocidal closed 1 month ago

technocidal commented 1 month ago

This helper function checks if a certain key exists and only if that's the case, it decrements the value of the key. This is in contrast to the normal Redis DECR command which creates a new key, if it notices that the key does not exist and sets the value of the key to 0 by default.

davehorton commented 1 month ago

published in v0.8.11

technocidal commented 1 month ago

Thank you