Toshihiko
    Preparing search index...

    Memcached-backed Cache implementation.

    Batch reads are split to keep each Memcached get command within the protocol's 250-character key command limit. Batch deletion uses at most ten concurrent workers.

    Hierarchy (View Summary)

    Index
    memcached: Memcached

    Underlying memcached client.

    options: MemcachedCacheOptions | undefined

    Client and key-generation options supplied at construction.

    prefix: string

    Prefix prepended to generated keys.

    servers: Location

    Memcached server location passed to the client.

    • Deletes one cached row.

      Parameters

      • database: string
      • table: string
      • key: CacheKey

      Returns Promise<boolean>

    • Deletes cached rows for multiple keys.

      Parameters

      • database: string
      • table: string
      • keys: readonly CacheKey[]

      Returns Promise<void>

    • Reads cached rows in request order, using null for a cache miss.

      Type Parameters

      • Value extends object

      Parameters

      Returns Promise<(Value | null)[]>

    • Stores one serialized row under a Cache key.

      Type Parameters

      • Value extends object

      Parameters

      Returns Promise<boolean>