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
It seems that the current interface doesn't support storing nulls, because get returns null in case a value is not found or is expired and there is no separate function to query whether a value exists with a given key.
My use case would be to store properties with default values. So, if there is a property whose default value is not null, but whose value can be null, then lscache cannot be used to consistently store such a property.
Edit: Of course, one could wrap (nullable) values inside a container object, but that is a bad, because it increases the amount of storage space needed.
The text was updated successfully, but these errors were encountered:
It seems that the current interface doesn't support storing nulls, because get returns null in case a value is not found or is expired and there is no separate function to query whether a value exists with a given key.
My use case would be to store properties with default values. So, if there is a property whose default value is not null, but whose value can be null, then lscache cannot be used to consistently store such a property.
Edit: Of course, one could wrap (nullable) values inside a container object, but that is a bad, because it increases the amount of storage space needed.
The text was updated successfully, but these errors were encountered: