Skip to content

Not able to use CacheStorage/Cache keys methods #33272

@b0xyd3

Description

@b0xyd3

Global CacheStorage:

const k = await globalThis.caches.keys()

Output:

error: Uncaught (in promise) TypeError: globalThis.caches.keys is not a function

Specific Cache:

const c = await globalThis.caches.open('e1')
const k = await c.keys()

Output:

error: Uncaught (in promise) TypeError: c.keys is not a function

IDK is this a bug or something, but docs says that CacheStorage.keys method should be available (not sure about specific Cache.keys).

Version: Deno 2.7.12+20a1a36

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions