memcached 1.0.2 copy "memcached: ^1.0.2" to clipboard
memcached: ^1.0.2 copied to clipboard

Simple in-memory key to object cache with expiry

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));
1
likes
130
pub points
40%
popularity

Publisher

verified publisherarcane.art

Simple in-memory key to object cache with expiry

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (LICENSE)

Dependencies

synchronized

More

Packages that depend on memcached