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

NUT-19: Cached Responses #195

Merged
merged 19 commits into from
Dec 3, 2024
Prev Previous commit
Next Next commit
expire 0 -> null
lollerfirst committed Nov 24, 2024
commit 128ea4ef2a3a20c54b9efe7473db9c82aa9b8d8d
4 changes: 2 additions & 2 deletions XX.md
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ The entry must be structured as follows:
"nuts": {
...,
"xx": {
"ttl": <int>,
"ttl": <int|null>,
"cached_endpoints": [
{
"path": "v1/{mint|melt}/{method}",
@@ -56,7 +56,7 @@ The entry must be structured as follows:
Where `ttl` is the amount of seconds the responses are cached for and `cached_endpoints` is a list of the routes for which caching is enabled.
lollerfirst marked this conversation as resolved.
Show resolved Hide resolved
`path` and `method` describe respectively the cached route and its method.
lollerfirst marked this conversation as resolved.
Show resolved Hide resolved

if `ttl` is set to 0, then the responses are to be considered cached *indefinetely*
if `ttl` is null, the responses are to be considered cached *indefinetely*.
lollerfirst marked this conversation as resolved.
Show resolved Hide resolved

## Example