Skip to content

Split data and page cache #73

Open

Description

@VladBo

Hi there.

Is it possible to split data and page cache and use separate storages for them using this library?
Let's say I want to keep storing page cache in file system, but data cache should be stored in Redis.

I know that it's not an issue, but Discussions are closed. So asking here.

Activity

  1. RomanBobrovskiy commented on Jul 18, 2025

    @RomanBobrovskiy
    Contributor

    you can provide your own cache handler as option to basic one and specify different strategies based on the route type (if it is a page vs api route), but still note that next will have to request both at the same time anyway, so in most of the cases you will call both storages at the same time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions