0 purchases
easy data cache
Key-value database with expiration time
Usage #
Initialize :
await EasyDataCache.init();
copied to clipboard
Usage :
EasyDataCache.put('key', 'value', duration: Duration(seconds: 5));
//or
EasyDataCache.put('key', 'value', expirationDate: DateTime(2025, 1, 1));
copied to clipboard
print(EasyDataCache.get('key'));
copied to clipboard
print(EasyDataCache.containsKey('key'));
copied to clipboard
print(EasyDataCache.delete('key'));
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.