-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/1838 cache post requests (#2114)
* Add support for caching of POST request When an endpoint is added in cache list, caching will be enabled to for all safe methods as well as POST request. * Add test for per path caching * Use hash of POST body while creating checksum for cache key * 1. Add new advance_cache_config field in api definition 2. Add support of defining regex pattern to calculate cache key from post body * Add test for caching of POST request * Add delay in TestCachePostRequest test * Minor fixes * Add test cases to check cache works correctly with regex
- Loading branch information
1 parent
42bfb74
commit b363c8b
Showing
4 changed files
with
130 additions
and
16 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
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