Skip to content

[question] Invalidating cache bases #515

Open
@remihuigen

Description

@remihuigen

I was wondering what the most efficient way is to clear cache bases.

I was looking at this bit of code, where you're clearing a base 100 keys at a time

I've been trying to make unstorage's clear() method work , but with no luck (which is probably why nuxthub uses batches of 100 keys).

I have two questions related to this:

  • Why doesnt the clear method work?
  • What if a want to invalidate thousands of keys at a time? I would likely run into these limits: https://arc.net/l/quote/omawzasz

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions