Interface ILocalForage

Index

Properties

Methods

Properties

public length: number

Methods

public clear()

public getItem(key: string, callback: ICallback)

Parameters

public getItem(key: string): IPromise

Parameters

  • key: string

Returns

IPromise

public key(index: number): T in lf.ILocalForage<T>

Parameters

  • index: number

Returns

T in lf.ILocalForage<T>

public removeItem(key: string, callback: ICallback)

Parameters

public removeItem(key: string): IPromise

Parameters

  • key: string

Returns

IPromise

public setItem(key: string, value: T in lf.ILocalForage<T>, callback: ICallback)

Parameters

  • key: string
  • value: T in lf.ILocalForage<T>
  • callback: ICallback

public setItem(key: string, value: T in lf.ILocalForage<T>): IPromise

Parameters

  • key: string
  • value: T in lf.ILocalForage<T>

Returns

IPromise