cache_manager_plus_utils 1.0.2 copy "cache_manager_plus_utils: ^1.0.2" to clipboard
cache_manager_plus_utils: ^1.0.2 copied to clipboard

Utility package for cache manager plus.

example/example.dart

import 'package:cache_manager_plus/cache_manager_plus.dart';
import 'package:cache_manager_plus_utils/cache_manager_plus_utils.dart';

void main() async {
  await CacheManager.init(
    store: HiveCacheStore(path: '/Users/sebastine/Downloads'),
  );

  await CacheManager.instance.set(
    CacheItem.ephemeral(key: 'key', data: 'Hello World'),
  );

  print((await CacheManager.instance.get('key'))?.data); // prints hello world
}
0
likes
150
points
32
downloads

Publisher

unverified uploader

Weekly Downloads

Utility package for cache manager plus.

Repository (GitHub)
View/report issues

Topics

#cache-manager-plus #cache-manager-utils #caching

Documentation

API reference

License

MIT (license)

Dependencies

cache_manager_plus, hive_ce

More

Packages that depend on cache_manager_plus_utils