Class BSONDriver<V>

Type Parameters

Hierarchy

  • BSONDriver

Constructors

Properties

Methods

Constructors

Properties

backup?: BackupOptions
filePath: string
timer: null | Timeout

Methods

  • Saves data to the JSON file with a delayed timer.

    Parameters

    • data: object

      The data to be saved.

    • cache: object

      The cache object.

    Returns void

  • Saves data to the JSON file immediately.

    Parameters

    • data: object

      The data to be saved.

    • cache: object

      The cache object.

    Returns void

Generated using TypeDoc