Skip to content

It is not enough for a man to know how to ride, he must also know how to fall. Native American Proverb

License

Notifications You must be signed in to change notification settings

TudorHulban/Caches

Repository files navigation

Memory Caches

Cache Vanilla

Simple memory cache implemented with a Go map and guarded by a mutex.
Just one file with no dependencies that can be used wherever needed.
Tested for race conditions.

Cache TTL

Added a janitor to clean TTL outdated records.

LRU Any Version

Could be used when mixed values are to be stored.
Small penalty in performance.

LRU Specialised Version

One type of value to be stored.
Best performance.

About

It is not enough for a man to know how to ride, he must also know how to fall. Native American Proverb

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published