Skip to content

Contains multiple in-memory cache implementations including LRU & LFU

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

go-playground/cache

Repository files navigation

cache

Project status GoDoc License

Contains multiple in-memory cache implementations including LRU & LFU

Requirements

  • Go 1.18+

Contents

See detailed usage and docs using the links below.

Cache Description
LRU A Least Recently Used cache.
LFU A Least Frequently Used cache.

Thread Safety

These caches have the option of being built with no locking and auto locking guarded via a mutex.

When to use the no locking option:

  • For single threaded code.
  • When you wish control your own locking semantics.

When to use auto locking:

  • Ease of use, but still the ability to perform multiple operations using the LockGuard.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this package by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Contains multiple in-memory cache implementations including LRU & LFU

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published