Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storing nulls? #52

Open
polytypic opened this issue Nov 11, 2015 · 0 comments
Open

Storing nulls? #52

polytypic opened this issue Nov 11, 2015 · 0 comments

Comments

@polytypic
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant