Type alias CacheStructure<K, V>

CacheStructure<K, V>: {
    delete(key) => void | Promise<void>;
    get(key) => V | Promise<V>;
    set(key, value) => void | Promise<void>;
}

Type Parameters

  • K

  • V

Type declaration

  • delete:function
  • get:function
  • set:function
    • Parameters

      • key: K
      • value: V

      Returns void | Promise<void>

Generated using TypeDoc