easy_data_cache 1.0.1 copy "easy_data_cache: ^1.0.1" to clipboard
easy_data_cache: ^1.0.1 copied to clipboard

Key-value database with expiration time.

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'));
2
likes
140
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

Key-value database with expiration time.

Repository (GitHub)
View/report issues

Topics

#database #cache

Documentation

API reference

License

MIT (license)

Dependencies

hive

More

Packages that depend on easy_data_cache