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

Make two level cache #101

Open
WindSoilder opened this issue Dec 11, 2020 · 0 comments
Open

Make two level cache #101

WindSoilder opened this issue Dec 11, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@WindSoilder
Copy link
Owner

WindSoilder commented Dec 11, 2020

Level 1: user input -> answer
(When use input the same query, hors can make use of cache and return relative answer immediately)

NOTE: it's especially when user use zsh or git bash, which have 'reverse-i-search' feature, when user use it to search for historical hors command, it's easy to catch the cache. So the relative answer can return quickly. This is what howdoi does for now.

To make cache a little more clever, when we save query, we can remove any space and punction.

Level 2: page link -> stackoverflow answer (which is already implemented)

@WindSoilder WindSoilder added the enhancement New feature or request label Mar 18, 2021
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