import { DaffMemoryStorageService } from '@daffodil/core'
@Injectable()
class DaffMemoryStorageService implements DaffPersistenceService {
memory: { [x: string]: any; } = {}
setItem(
key: string
value: any
): void
getItem(key: string): any
clear(): void
removeItem(key: string): void
}
void| Parameter | key: string |
|---|---|
| Description |
| Parameter | value: any |
|---|---|
| Description |
any| Parameter | key: string |
|---|---|
| Description |
voidvoidWe abuse destructuring to remove the key https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
| Parameter | key: string |
|---|---|
| Description |