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
Yep. That's a bug. Might be hard to sort out as internally as the code deletes and re-adds the key using UNLINK and HSET. I did this because calling HSET will overlay the existing fields in the Hash and this leaves existing fields in place. So, if you removed a field in your data, it would not be in your JavaScript object but will still be in Redis.
I'll have to add a check to see if there is a TTL before doing this and reapply it. Or I'll need to look at all the fields that are currently there and the ones in the JavaScript object being written, diff them, and call HDEL on the offending fields.
Frankly, both are a little ugly.
JSON shouldn't have this problem as I don't delete beforehand.
If I update an existing key, which has an expire value set using save method, afterwards expire is reset to -1.
create:
update:
ttl is -1, expected round about 3599
The text was updated successfully, but these errors were encountered: