FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

jWinterDay/content_cache: dart key-value cache library · GitHub

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Content Cache Packages

simple key-value cache with Devtools Extension support

Usage

1. install

dart pub add content_cache

2. methods

  • Stream get onChangeStream;
  • void save(Object key, T content, {Duration ttl});
  • bool isExists(Object key);
  • T? retrieve(Object key);
  • T retrieveOrDefault(Object key, T defaultVal);
  • void clearAll();
  • void remove(Object key);
  • void dispose();
  • Developing

    flutter run -d chrome --dart-define=use_simulated_environment=true

    Devtools

    also this package allows you to see the cache data real-time

    Example

    import 'package:content_cache/content_cache.dart';
    
    void main() {
        final ContentCache contentCache = ContentCacheImpl.instance;
    
        contentCache.save('counterKey', 'test1');
    }

About

dart key-value cache library

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL