GitHub

DaffLocalStorageService

import { DaffLocalStorageService } from '@daffodil/core'

@Injectable()
class DaffLocalStorageService implements DaffPersistenceService {
  setItem(
    key: string
    value: any
  ): void
  getItem(key: string): any
  removeItem(key: string): any
  clear(): void
}

() Methods

setItem
void

Persist the given item into local storage.

Parameters
Parameterkey: string
Description
Parametervalue: any
Description
getItem
any

Retrieve the given item from localstorage.

Parameters
Parameterkey: string
Description
removeItem
any

Remove a given item from localstorage

Parameters
Parameterkey: string
Description
clear
void