mirror of
https://github.com/direct-img/direct-img.link.git
synced 2026-03-17 03:01:01 +00:00
Docs: Update rate-limit TTL to 25 hours
This commit is contained in:
@@ -181,7 +181,7 @@ Fork this repo, connect to Cloudflare Pages, deploy.
|
|||||||
|
|
||||||
Each new search writes a unique key to avoid race conditions with concurrent requests:
|
Each new search writes a unique key to avoid race conditions with concurrent requests:
|
||||||
|
|
||||||
**Key:** `<ip>:<YYYY-MM-DD>:<timestamp>-<uuid>` → **Value:** `"1"` — **TTL:** 48 hours
|
**Key:** `<ip>:<YYYY-MM-DD>:<timestamp>-<uuid>` → **Value:** `"1"` — **TTL:** 25 hours
|
||||||
|
|
||||||
To check usage, `list({ prefix: "<ip>:<YYYY-MM-DD>:" })` counts the keys. No read-modify-write, no race condition.
|
To check usage, `list({ prefix: "<ip>:<YYYY-MM-DD>:" })` counts the keys. No read-modify-write, no race condition.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user