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

outdated

A feasible caching library for Flutter. Save any encrypted string.

example/lib/main.dart

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

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  // Initialize 128byte password (16 Charecter)
  String password = 'CBoaDQIQAgceGg8d';

  // Initialize CacheX with the password
  await CacheXCore().init(password);

  // Do your apps essential works

  // Then anywhere in your app use it to save string
  print(await CacheXCore.instance.saveData('ft1', 'Tanvir'));
  // Get String
  print(await CacheXCore.instance.getData('ft1'));
}
8
likes
0
points
36
downloads

Publisher

verified publisherrrad.dev

Weekly Downloads

A feasible caching library for Flutter. Save any encrypted string.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

encrypt, flutter, shared_preferences

More

Packages that depend on cache_x