cache_nexus 1.0.0 copy "cache_nexus: ^1.0.0" to clipboard
cache_nexus: ^1.0.0 copied to clipboard

Offline-first, debuggable data orchestration layer for Flutter. Features TTL caching, 5 cache policies, encryption, auth-aware isolation, reactive streams, offline sync, and built-in dev tools.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:cache_nexus/cache_nexus.dart';
import 'services/cache_service.dart';
import 'screens/home_screen.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  final cacheService = await CacheService.create();
  runApp(CacheNexusApp(cacheService: cacheService));
}

class CacheNexusApp extends StatelessWidget {
  final CacheService cacheService;

  const CacheNexusApp({super.key, required this.cacheService});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Smart Cache Demo',
      theme: ThemeData(
        colorSchemeSeed: const Color(0xFF6750A4),
        useMaterial3: true,
      ),
      debugShowCheckedModeBanner: false,
      home: CacheNexusOverlay(
        manager: cacheService.cache,
        child: HomeScreen(cacheService: cacheService),
      ),
    );
  }
}
1
likes
130
points
115
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Offline-first, debuggable data orchestration layer for Flutter. Features TTL caching, 5 cache policies, encryption, auth-aware isolation, reactive streams, offline sync, and built-in dev tools.

Repository (GitHub)
View/report issues
Contributing

Topics

#cache #offline #hive #flutter #dio

License

MIT (license)

Dependencies

connectivity_plus, dio, flutter, hive, hive_flutter, path_provider

More

Packages that depend on cache_nexus