Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Accessors

Methods

Constructors

constructor

  • new Memcached(location: _Memcached.Location, options?: _Memcached.options): Memcached

Accessors

Protected client

  • get client(): _Memcached
  • Lazy loads underlying Memcached client. This ensures users don't get a module not found error when importing this library without installing the memcached package.

    Returns _Memcached

Methods

close

  • close(): Promise<boolean>

delete

  • delete(keys: string | string[]): Promise<number>

expire

  • expire(key: string, ttl: number): Promise<boolean>

get

  • get(key: string): Promise<string>

has

  • has(key: string): Promise<boolean>

keys

  • keys(): Promise<string[]>

set

  • set(key: string, value: any, ttl?: number): Promise<boolean>

ttl

  • ttl(key: string): Promise<number>

Generated using TypeDoc