Skip to content

A simple library in Go that does a basic implementation of the few most popular caching algorithms.

Notifications You must be signed in to change notification settings

justary27/Cacher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cacher

A simple library in Go that does a basic implementation of the few most popular caching algorithms.

The caching eviction policies implemented are the following:

  • FIFO (First in first out)
  • LIFO (Last in first out)
  • LRU (Least Recently Used)

You can make your own policy by embedding the EvictionPolicy base struct in your policy.

Examples

Please note that in each example, the respective cache variable has been typed as interfaces.Cacheto prevent access to the internal state in the program.

Tech Stack

  • go v1.21

Made with ❤️ by

About

A simple library in Go that does a basic implementation of the few most popular caching algorithms.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages