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

SetCache Efficient data caching package for pub.dev, optimizing performance and reducing network calls. Boost your app's speed!

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:set_cache/set_cache.dart';

void main() {
  // maxAge: days
  // init() must be called before using save() and get()
  SetCache.instance.init(maxAge: 7);
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);
  static const String _title = 'Set Cache Example';

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: _title,
      // home: const MyStatefulWidget(),
    );
  }
}
6
likes
120
points
32
downloads

Publisher

unverified uploader

Weekly Downloads

SetCache Efficient data caching package for pub.dev, optimizing performance and reducing network calls. Boost your app's speed!

Repository (GitHub)

Documentation

API reference

License

unknown (license)

Dependencies

flutter, shared_preferences

More

Packages that depend on set_cache