content_cache 0.0.10 copy "content_cache: ^0.0.10" to clipboard
content_cache: ^0.0.10 copied to clipboard

outdated

content_cache

Pub Version Dart SDK Version Pub popularity

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()

Devtools #

also this package allows you to see the cache data real-time

[Screenshot]

Example #

import 'package:content_cache/content_cache.dart';

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

    contentCache.save('counterKey', 'test1');
}
6
likes
0
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

content_cache

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

di_visualizer_annotation, meta

More

Packages that depend on content_cache