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
}
voidPersist the given item into local storage.
| Parameter | key: string |
|---|---|
| Description |
| Parameter | value: any |
|---|---|
| Description |
anyRetrieve the given item from localstorage.
| Parameter | key: string |
|---|---|
| Description |
anyRemove a given item from localstorage
| Parameter | key: string |
|---|---|
| Description |
void