forked from babashka/neil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: adds an in-memory cache to curl requests
Caches repeated requests via curl with an in-memory cache. This allows the tests to make each request only once, and more tests can be written without encroaching further on third-party service rate-limits. Note that this in-memory cache lives for the life of the program, so long-running services that use neil as a library would need to periodically clear the cache, unless some other clearing mechanism is implemented. In this model, typical bb one-off usages should always start with an empty cache, so there should be little change for end-users.
- Loading branch information
1 parent
ca073c4
commit fb5d718
Showing
2 changed files
with
44 additions
and
4 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