From be18840701b58daea57ed41a1dfc0df477fa40b6 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Fri, 13 Feb 2026 11:22:22 -0800 Subject: [PATCH] Refactor: Rename KV namespaces to be project-scoped --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 699bef9..769ca72 100644 --- a/README.md +++ b/README.md @@ -87,8 +87,8 @@ This is a free community service. Donations help cover API and infrastructure co | Resource | Name | Purpose | |---|---|---| | R2 Bucket | `direct-img-store` | Stores compressed WebP images | -| KV Namespace | `SEARCH_CACHE` | Query → cache existence + timestamp | -| KV Namespace | `RATE_LIMIT` | Per-IP daily new-search counter | +| KV Namespace | `DIRECT_IMG_CACHE` | Query → cache existence + timestamp | +| KV Namespace | `DIRECT_IMG_RATE` | Per-IP daily new-search counter | ### R2: `direct-img-store` @@ -100,7 +100,7 @@ Example: `"orange cat"` → `a1b2c3d4...ef.webp` All images stored as compressed WebP. -### KV: `SEARCH_CACHE` +### KV: `DIRECT_IMG_CACHE` Confirms a cached image exists for a query. The R2 key is derived from the same query at request time. @@ -122,7 +122,7 @@ orange cat **Size:** ~20 bytes per entry. Free tier (1 GB) supports millions of entries. -### KV: `RATE_LIMIT` +### KV: `DIRECT_IMG_RATE` Tracks daily new-search count per IP.