content_cache

Creator: coderz1093

Last updated:

0 purchases

content_cache Image
content_cache Images

Languages

Categories

Add to Cart

Description:

content cache

Content Cache #
simple key-value cache with Devtools Extension support
Usage #
1. install #
dart pub add content_cache
2. methods #
Stream<Object> get onChangeStream
void save<T>(Object key, T content, {Duration ttl})
bool isExists(Object key)
T? retrieve<T>(Object key)
T retrieveOrDefault<T>(Object key, T defaultVal)
void clearAll()
void remove(Object key)
void dispose()
copied to clipboard
Devtools #
also this package allows you to see the cache data real-time

Example #
import 'package:content_cache/content_cache.dart';

void main() {
final ContentCache contentCache = ContentCacheImpl.instance;

contentCache.save('counterKey', 'test1');
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.