memcached 1.1.0 copy "memcached: ^1.1.0" to clipboard
memcached: ^1.1.0 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
points
515
downloads

Publisher

verified publisherarcane.art

Weekly Downloads

Simple in-memory key to object cache with expiry

Repository (GitHub)

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

synchronized

More

Packages that depend on memcached