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

better expose popkeys and drop methods for a klepto.archive #262

Open
mmckerns opened this issue Nov 1, 2024 · 0 comments
Open

better expose popkeys and drop methods for a klepto.archive #262

mmckerns opened this issue Nov 1, 2024 · 0 comments

Comments

@mmckerns
Copy link
Member

mmckerns commented Nov 1, 2024

mystic.cache.archive has read and write functions. Similar methods to "remove" a list of entries and to "delete" an archive should be added, as they compliment read and write.

"remove an entry" in a klepto.archive instance "a" should be implemented with values = a.popkeys(keys), however should potentially return a dict of popped key/value pairs.

"delete a backend" for a klepto.archive instance "a" should be implemented with a.archive.__drop__(), and should probably either return None or the contents of the archive.

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

No branches or pull requests

1 participant