Skip to content

Add common interface types for Hit, Miss, Success, etc #435

@malandis

Description

@malandis

Currently we have no way of expressing whether a generic request was a Success vs Error, Hit vs Miss, etc. Add interface types to express this. We want:

  • Success responses to implement ISuccess
  • Hit, Miss, and other non-error responses to also implement ISuccess
  • Hit responses to implement IHit
  • Miss responses to implement IMiss

Add type annotations to control and data responses.

Survey other specialized types to account for this as well. (eg SetIfNotExists stored vs not stored)

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