Skip to content

Commit

Permalink
expire 0 -> null
Browse files Browse the repository at this point in the history
  • Loading branch information
lollerfirst committed Nov 24, 2024
1 parent 1bc561a commit 128ea4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions XX.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand All @@ -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.
`path` and `method` describe respectively the cached route and its method.

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*.

## Example

Expand Down

0 comments on commit 128ea4e

Please sign in to comment.