Key-value database with expiration time

Usage

Initialize :

await EasyDataCache.init();

Usage :

EasyDataCache.put('key', 'value', duration: Duration(seconds: 5));

//or

EasyDataCache.put('key', 'value', expirationDate: DateTime(2025, 1, 1));
print(EasyDataCache.get('key'));
print(EasyDataCache.containsKey('key'));
print(EasyDataCache.delete('key'));

Libraries

easy_data_cache
Support for doing something awesome.