Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TTLBatch<Value>

Type parameters

  • Value

Hierarchy

  • TTLBatch

Implements

  • Batch<Value>

Index

Constructors

Properties

Methods

Constructors

constructor

  • new TTLBatch(ttl: number, batch: Batch<Value>, ttlOn: TTLOnFunction, ttlOff: TTLOffFunction): TTLBatch
  • Parameters

    • ttl: number
    • batch: Batch<Value>
    • ttlOn: TTLOnFunction
    • ttlOff: TTLOffFunction

    Returns TTLBatch

Properties

ttl

ttl: number

Methods

commit

  • commit(): Promise<void>

delete

  • delete(key: Key): void
  • Parameters

    • key: Key

    Returns void

put

  • put(key: Key, value: Value): void
  • Parameters

    • key: Key
    • value: Value

    Returns void