Skip to content

cyberpwnn/dart_memcached

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple in-memory key to object cache with expiry

Features

Dynamic values mean there's no type checking or serialization. This means you can store anything you want in the cache.

Usage

double someValue = getCachedSync(
    id: "some.key", 
    getter: () => 1.5, 
    duration: Duration(minutes: 5));

getCached(
    id: "some.async", 
    getter: () async => 1.5, 
    duration: Duration(minutes: 5))
.then((value) => print(value));

About

In-memory key to object cache with expiry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages