Add cache for all stadia requests

This commit is contained in:
Eli Ribble 2026-04-06 22:36:25 +00:00
parent 9ef6aaa406
commit c393f6fd81
No known key found for this signature in database
10 changed files with 647 additions and 6 deletions

View file

@ -0,0 +1,12 @@
-- +goose Up
CREATE SCHEMA stadia;
CREATE TABLE stadia.api_request (
id BIGSERIAL,
request TEXT NOT NULL UNIQUE, -- hash or identifier
response JSONB NOT NULL,
created_at TIMESTAMP WITHOUT TIME ZONE NOT NULL,
PRIMARY KEY(id)
);
-- +goose Down
DROP TABLE stadia.api_request;
DROP SCHEMA stadia;