7.0.1 • Published 5 years ago

@viberlab/storage v7.0.1

Weekly downloads
1
License
Apache-2.0
Repository
-
Last release
5 years ago

LocalStorageService SessionStorageService

The service for local and session storage

@viberlab/vbr-storage

store(key: string, value: any) - sets some value by the name key

retrieve(key: string) - gets the value by the name key

clear(key?: string) - removes the value by the name key, clears all storage if there is not key

observe(key: string) - observes the storage by the name key

import in module:

VbrStorageModule.forRoot({
  prefix: 'your_prefix'
})

prefix adds your_prefix- to the key in storage (optional)

7.0.1

5 years ago

7.0.0

5 years ago

1.0.0-alfa.1

6 years ago