Skip to main content

CustomKeyResolverCache <Payload, Result>

Implements

Index

Constructors

Methods

Constructors

publicconstructor

  • new CustomKeyResolverCache<Payload, Result>(getKey: (payload: Payload) => string): CustomKeyResolverCache<Payload, Result>
  • Type parameters

    • Payload
    • Result

    Parameters

    • getKey: (payload: Payload) => string

      Returns CustomKeyResolverCache<Payload, Result>

    Methods

    publicdelete

    • delete(payload: Payload): boolean
    • Parameters

      • payload: Payload

      Returns boolean

    publicget

    • get(payload: Payload): undefined | Task<Payload, Result>
    • Parameters

      • payload: Payload

      Returns undefined | Task<Payload, Result>

    publicset

    • Parameters

      • payload: Payload
      • value: Task<Payload, Result>

      Returns ResolverCache<Payload, Result>

    Page Options