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
{{ message }}
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.
This 'bug' happens because this library uses hmset redis command, that does only upsert but does not remove missing keys.
This library offerse the possibility to retrieve partial objects, so is not possibile to remove missing object props / array keys on set.
I think that a big disclaimer on this behavior should be added to the docs.
Would you accept a pull request that adds some new methods to allow a user to 'set and replace with delete missing props' objects in this cache in the stored objects are very little?
Thanks
Francesco
The text was updated successfully, but these errors were encountered:
I've found a strage behavior of the .set() method working with arrays.
The strage and not documented behavior is that if an array becomes shorter than the last stored in redis, the last few keys are note deleted.
Test case:
This 'bug' happens because this library uses
hmset
redis command, that does only upsert but does not remove missing keys.This library offerse the possibility to retrieve partial objects, so is not possibile to remove missing object props / array keys on set.
I think that a big disclaimer on this behavior should be added to the docs.
Would you accept a pull request that adds some new methods to allow a user to 'set and replace with delete missing props' objects in this cache in the stored objects are very little?
Thanks
Francesco
The text was updated successfully, but these errors were encountered: