Skip to content

Easely cache any data structure for specific amount of time in Tizen.NET app, inspired by https://github.com/jamesmontemagno/monkey-cache

License

Notifications You must be signed in to change notification settings

ahmadtantowi/LiteCache.Tizen

Repository files navigation

LiteCache.Tizen

Easely cache any data structure for specific amount of time in Tizen.NET app, which powered by LiteDB.

NuGet

Platform Support

Platform Version
Tizen 4.0+

Setup

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;

Encryption

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.

 

Version history

0.2.0

  • Add function to read any existing key that stored on disk, both active or expired

0.1.0

  • Create, Read, Delete cache data with key to storage
  • Check if key is expired
  • Check if key is exist

About

Easely cache any data structure for specific amount of time in Tizen.NET app, inspired by https://github.com/jamesmontemagno/monkey-cache

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages