Skip to content

func read(keys: [CacheKey]) async -> [Data] should be deprecated #26

@dannynorth

Description

@dannynorth

There's no good way to implement this correctly, because there's no way for users to know whether specific passed-in keys have been skipped due to non-existence.

For example:

let keys = [goodKey1, badKey2, badKey3, goodKey4, badKey5, goodKey6]
let data = await storage.read(keys: keys)

// data contains three values, but for which keys?

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