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

Add a command for managing the cache #69

Open
shawnmjones opened this issue Feb 21, 2022 · 0 comments
Open

Add a command for managing the cache #69

shawnmjones opened this issue Feb 21, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@shawnmjones
Copy link
Member

A command that allows the user to manage the cache would be very helpful after we have implemented #65.

I'm envisioning something like the following:

This command would list all URIs in the cache:

# hc-cache list-uris -o all-uris.txt

This command would purge all cache tables:

# hc-cache purge-all

This command would only purge the memento URI-Ms in the list:

# hc-cache purge -i memento-urims.txt

This command would only purge the cached content of memento URI-Ms, but leave the derived data:

# hc-cache purge -i memento-urims.txt --only-content

This command would preload the cache with a list of URIs:

# hc-cache preload -i uris.txt

This would export the cache into some (to be determined) file format:

# hc-cache export -o exported-cache-data.dat

Likewise, we can load the cache using some (to be determined) file format:

# hc-cache import -i some-elses-cache-data.dat

As time goes on, I'm sure I can think of other things.

@shawnmjones shawnmjones added the enhancement New feature or request label Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant