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

[query] Cache star counts and Whiskers statuses #31

Open
uncenter opened this issue Jun 29, 2024 · 0 comments
Open

[query] Cache star counts and Whiskers statuses #31

uncenter opened this issue Jun 29, 2024 · 0 comments

Comments

@uncenter
Copy link
Owner

uncenter commented Jun 29, 2024

The easiest way to do this is to support storing any serde_json::Value, so strings (the current implementation) as well as arrays and objects, etc. I cannot figure out how to get my cache methods to support JSON value generics -- something like cache.get_or<String>(...); where the String type parameter would be the return type and what the value is deserialized to. But currently not possible AFAIK.

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