GitHub

DaffMemoryStorageService

class

import { DaffMemoryStorageService } from '@daffodil/core'

class DaffMemoryStorageService implements DaffPersistenceService {
  memory: { [x: string]: any; } = {}

  setItem(
    key: string
    value: any
  ): void
  getItem(key: string): any
  clear(): void
  removeItem(key: string): void
}