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 optional cache prefix parameter to kv_def #568

Merged
merged 1 commit into from
Jul 20, 2022
Merged

Conversation

svix-daniel
Copy link
Contributor

While the kv_def macro was there previously, we did not use it in some places
because of the need for custom prefixes. This PR augments the kv_def and
string_kv_def macros to take an optional string literal to be used as the
PREFIX_CACHE constant for the CacheKey trait.

Additionally this replaces the two manual implementations of the cache traits
with this new macro syntax.

@svix-daniel svix-daniel merged commit 03a277c into main Jul 20, 2022
@svix-daniel svix-daniel deleted the daniel/kv-prefix branch July 20, 2022 09:05
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

Successfully merging this pull request may close these issues.

2 participants