Skip to content

Feature request: Cache TTL #2222

@devth

Description

@devth

Feature request

This may be counter to the philosophy of this library, but I thought I'd check.

I'd like to cache my data for a specific amount of time in Local Storage, e.g. 24 hours, and only revalidate after that TTL expires.

I found the docs for Local Storage based cache.

I scoured the Options and it looks like I could turn off all the revalidate*** options, but I'm not sure if there's a way to keep track of how old cached items are, and revalidate when expired. It'd be amazing if this was a built in feature.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions