Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CustomCache

A custom cache manager built-in for pogtopia

Hierarchy

  • CustomCache

Index

Constructors

Properties

Constructors

constructor

Properties

Private container

container: any

del

del: (key: string) => void

Deletes a key-value pair from the cache.

param

The key to delete

Type declaration

    • (key: string): void
    • Parameters

      • key: string

      Returns void

get

get: (key: string) => any

Fetches a value from the cache with a key

param

The key to fetch

Type declaration

    • (key: string): any
    • Parameters

      • key: string

      Returns any

keys

keys: (pattern: string) => string[]

Fetches keys that match with a pattern

param

The pattern to match

Type declaration

    • (pattern: string): string[]
    • Parameters

      • pattern: string

      Returns string[]

set

set: (key: string, val: any) => void

Sets the value of a key to the cache

param

The unique key of the value

param

The value of that key

Type declaration

    • (key: string, val: any): void
    • Parameters

      • key: string
      • val: any

      Returns void

Generated using TypeDoc