Skip to content

feat: add TTL (time-to-live) support via request headers #2

@ajisth69

Description

@ajisth69

Right now, the proxy only supports persistent storage. It would be incredibly useful to use this as an ephemeral cache too. We should allow passing an optional x-ttl header in POST requests. The API route can parse this and map it to Redis's EX argument to automatically expire keys. This instantly turns the proxy into a viable solution for session management, rate-limiting, or caching expensive API responses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions