1.1.3 • Published 6 years ago

universal-storage-adapter v1.1.3

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Usage: You need to import package in this way : import storageAdapter from 'uiversal-storage-adapter'; Then use set and get methods to get or set some information from storage in this way: storageAdapter.get({ key: 'some key' })); storageAdapter.set({ key: 'some key', data: { value: 'some value', expires:200 }})

key: should be a string or a positive number data: should be an object with required fields 'value' and 'expires'. Expires param should be a positive number, it give us information about how many seconds will "live" data in storage;

Sorry for my english, thanx!

1.1.3

6 years ago

1.1.2

6 years ago

1.4.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago