Skip to content

Mohiuddin655-PUB/flutter_cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cache

A globally shared cache for storing and reusing logical data or objects by type and key.

Example

import 'package:in_app_cache/in_app_cache.dart';

void main() async {
  Cache.put("user", () {
    return {"name": "Json"};
  });
  print(Cache.get("user"));
  await Cache.putAsync("user2", () async {
    return {"name": "Future Json"};
  });
  print(Cache.get("user2"));
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages