Skip to content

Commit

Permalink
refactor!: replace custom cache with Cache API persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
esroyo committed Jan 21, 2025
1 parent 7c1518d commit 69bb0e1
Show file tree
Hide file tree
Showing 16 changed files with 603 additions and 586 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM denoland/deno:alpine-2.1.0
FROM denoland/deno:alpine-2.1.6

# The port that your application listens to.
EXPOSE 8000
Expand Down
2 changes: 2 additions & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"imports": {
"@esroyo/otel-server-timing-span-exporter": "jsr:@esroyo/otel-server-timing-span-exporter@2.1.0",
"@esroyo/otel-batch-traced-span-processor": "jsr:@esroyo/otel-batch-traced-span-processor@1.0.0",
"@esroyo/web-cache-api-persistence": "jsr:@esroyo/web-cache-api-persistence@0.1.5",
"@kitsonk/kv-toolbox": "jsr:@kitsonk/kv-toolbox@0.21.0",
"@opentelemetry/api": "npm:@opentelemetry/api@1.8.0",
"@opentelemetry/context-async-hooks": "npm:@opentelemetry/context-async-hooks@1.24.0",
Expand All @@ -26,6 +27,7 @@
"@opentelemetry/semantic-conventions": "npm:@opentelemetry/semantic-conventions@1.24.0",
"@opentelemetry/exporter-trace-otlp-http": "npm:@opentelemetry/exporter-trace-otlp-http@0.51.0",
"@std/assert": "jsr:@std/assert@1.0.6",
"@std/cache": "jsr:@std/cache@0.1.3",
"@std/dotenv": "jsr:@std/dotenv@0.225.2",
"@std/http": "jsr:@std/http@1.0.7",
"@std/path": "jsr:@std/path@1.0.6",
Expand Down
97 changes: 95 additions & 2 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 0 additions & 38 deletions src/cache/deno-kv-cache.ts

This file was deleted.

45 changes: 0 additions & 45 deletions src/cache/redis-cache.ts

This file was deleted.

46 changes: 0 additions & 46 deletions src/create-cache-pool.ts

This file was deleted.

Loading

0 comments on commit 69bb0e1

Please # to comment.