Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@ashuthe1 ashuthe1 released this 08 Jul 14:33
· 5 commits to main since this release

In-Memory Caching Library v2.0.0

We are excited to announce the release of v2.0.0 of our In-Memory Caching Library for Golang. This version introduces several new features and enhancements, alongside the robust capabilities from previous releases.

Features

Eviction Policies

  • FIFO (First-In-First-Out)
  • LRU (Least Recently Used)
  • LIFO (Last-In-First-Out)

Custom Eviction Policy

  • Define and integrate your own eviction policy by implementing the EvictionPolicy interface.

Thread Safety

  • Utilizes sync.RWMutex for concurrent read/write access safety, making it suitable for high-read, low-write workloads.

Statistics

  • Tracks and reports cache hits, misses, and expired items for better cache management and performance analysis.

Benchmarking

  • Basic benchmarking capabilities to measure and analyze cache operations.

New in v2.0.0

  • Versatile Value Storage: Can store any type of value, including integers, strings, arrays, maps, and structs.
  • Batch Operations: Supports setting and getting multiple key-value pairs at once.
  • Persistence: Save cache contents to a file and load from a file.

Installation

To install or update to the latest version, simply use go get:

go get -u github.com/ashuthe1/kuki-memcache

Getting Started

For detailed usage instructions and examples, refer to the README.md file in the repository.

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please submit them to our GitHub repository.

Thank you for using our In-Memory Caching Library. Happy caching!