cache

module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2023 License: Apache-2.0, MIT

README

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.

Directories

Path Synopsis
_examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL