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

Is there a dispose function? #84

Closed
bmewburn opened this issue May 3, 2017 · 3 comments
Closed

Is there a dispose function? #84

bmewburn opened this issue May 3, 2017 · 3 comments

Comments

@bmewburn
Copy link

bmewburn commented May 3, 2017

Thanks for creating this lib. I'm using it to cache a large number of items but wish to release these items from memory once I have read them. Can I dispose of the storage and re-init when needed?

@akhoury
Copy link
Collaborator

akhoury commented May 3, 2017

yea you can delete 1 item at a time using removeItem(key) or removeItemSync(key)

or you can clear everything using clear() or clearSync()

@akhoury akhoury closed this as completed May 3, 2017
@bmewburn
Copy link
Author

bmewburn commented May 3, 2017

I don't want to delete the cached items. I want to uninitialise.

@akhoury
Copy link
Collaborator

akhoury commented May 4, 2017

what do you mean by uninitialise? what are you trying to do? just release from memory but keep them on disk?

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

2 participants