Skip to content

bwhite000/cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cache

A Dart package for caching Files through a multi-threaded system. The format is modeled after the JavaScript ServiceWorker Cache Object.

Only Files are cacheable at the moment, but external resources will be possible to cache locally in the near future.

Example

More examples are located in the 'example/' directory of this package.

import "dart:async";
import "package:cache/cache.dart";

Future<Null> main() async {
  final Uri fileUri = new Uri.file('/Users/myself/Documents/test.txt');

  await Cache.addFile(fileUri);

  final String fileContents = await Cache.matchFile(fileUri);
  print(fileContents);
}

Features and bugs

Please file feature requests and bugs using the GitHub issue tracker for this repository.

Using this package? Let me know!

I am excited to see if other developers are able to make something with this package. If you have a project using it, please send me a quick email at the email address listed on my GitHub's main page. Thanks a bunch!

About

A Dart package for caching Files through a multi-threaded system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages