Closed Valdeminas closed 2 years ago
Just a quick update.
Rewrote our code to evaluate the following script
@"local current current = redis.call('incr',@key) if current == 1 then redis.call('pexpire', @key, @timeout) end return current"; And the issue now seems to be fixed.
Hi.
We use Azure redis cache. All of our keys are created with this code using StackExchange.Redis
I check for keys without expiry, by running this command via Redis console window in Azure portal:
Over the weekend we do ~42M sets. I would expect there to be 0 keys without expiration. However, the above command returns 11. If I delete these 11 keys, after a while there again are keys without expiration.
What could be causing this?
Thanks.