cache_x 1.2.2 copy "cache_x: ^1.2.2" to clipboard
cache_x: ^1.2.2 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: password);

  // Do your apps essential works

  // Then anywhere in your app use it to save string
  print(await CacheXCore.instance.saveData(key: 'ft1', value: 'Tanvir'));
  // Get String
  print(await CacheXCore.instance.getData(key: 'ft1'));
}
8
likes
0
points
40
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