Class CacheDriver

The CacheDriver class for the GoodDB package

Example

const db = new GoodDB(new CacheDriver());

Hierarchy

  • MemoryDriver
    • CacheDriver

Constructors

Properties

cache: Map<string, any>

Methods

  • Parameters

    • table: string

    Returns boolean

  • Parameters

    • table: string

    Returns boolean

  • Parameters

    • table: string
    • key: string

    Returns number

  • Parameters

    • table: string

    Returns any

  • Parameters

    • name: string

    Returns Map<string, any>

  • Parameters

    • table: string
    • key: string

    Returns any

  • Parameters

    • table: string

    Returns void

  • Parameters

    • table: string
    • array: any[]

    Returns boolean

  • Parameters

    • table: string
    • key: string
    • value: any

    Returns boolean

  • Returns string[]