Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ApiCache

Hierarchy

  • ApiCache

Implemented by

Index

Methods

clear

  • clear(cb: function): void
  • Parameters

    • cb: function
        • (error?: Error | null): any
        • Parameters

          • Optional error: Error | null

          Returns any

    Returns void

get

  • get(key: string, cb: function): void
  • Parameters

    • key: string
    • cb: function
        • (error?: Error | null, entry?: any): any
        • Parameters

          • Optional error: Error | null
          • Optional entry: any

          Returns any

    Returns void

isExpired

  • isExpired(key: String): boolean
  • Parameters

    • key: String

    Returns boolean

remove

  • remove(key: string, cb: function): void
  • Parameters

    • key: string
    • cb: function
        • (error?: Error | null): any
        • Parameters

          • Optional error: Error | null

          Returns any

    Returns void

set

  • set(key: string, value: any, ttl: number, cb: function): void
  • Parameters

    • key: string
    • value: any
    • ttl: number
    • cb: function
        • Parameters

          Returns void

    Returns void

Generated using TypeDoc