A specialized MapEntry implementation that will lazily deserialize keys/values upon request.

Type Parameters

  • K

  • V

Hierarchy

  • NamedCacheEntry

Implements

Constructors

Accessors

Constructors

  • Constructs a new NamedCacheEntry.

    Type Parameters

    • K

    • V

    Parameters

    • keyBytes: Uint8Array

      the raw key bytes

    • valueBytes: Uint8Array

      the raw value bytes

    • serializer: Serializer

      the Serializer to use to deserialize the raw keys and values

    Returns NamedCacheEntry<K, V>

Accessors

  • get key(): K
  • Returns the key corresponding to this entry.

    Returns

    the key corresponding to this entry

    Returns K

  • get value(): V
  • Returns the value corresponding to this entry.

    Returns

    the value corresponding to this entry

    Returns V