Easely cache any data structure for specific amount of time in Tizen.NET app, which powered by LiteDB.
Platform | Version |
---|---|
Tizen | 4.0+ |
Install LiteCache.Tizen package on your Tizen.NET project.
It's required to set a cache directory for your application, which will create specific folder with the application on disk. This can be done by assign value to static string on Cotton before calling other COTTON method:
Cotton.CacheDirectory = "Your cache directory";
e.g:
Cotton.CacheDirectory = Current.DirectoryInfo.Cache;
LiteDB offers built in encryption support (https://github.com/mbdavid/LiteDB/wiki/Connection-String), which can be enabled with a static string on Barrel before calling ANY method. You must choose this up front before saving any data.
Cotton.EncryptionKey = "Your encryption key";
And you ready to cache any data structure.
- Add function to read any existing key that stored on disk, both active or expired
- Create, Read, Delete cache data with key to storage
- Check if key is expired
- Check if key is exist