-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cache): Allow using in-memory compression dicts
This PR allows setting the compression dictionary used for headers in `pingora-cache` from in-memory bytes instead of an external file. This is useful if the dict is already embedded in the binary, or is retrieved from remote storage dynamically. Also cleans up the code a bit by making the constant private, moving the initialisers to the same file and re-exporting them to keep the logic contained, and by slightly simplifying the file loading code.
- Loading branch information
Showing
2 changed files
with
45 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters