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