Skip to content

KCache v0.0.1

Choose a tag to compare

@GtechGovind GtechGovind released this 18 Nov 13:27
· 3 commits to master since this release

Changelog for KCache Class

Version 0.0.1

  • Initial Release
    • Introduced an in-memory cache with basic functionality.
    • Supported time-to-live (TTL) for cache items, where items older than the TTL are considered expired.
    • Implemented the Least Recently Used (LRU) eviction policy to manage cache overflow when the maximum size (maxSize) is exceeded.
    • Allowed both synchronous and asynchronous access to cache items via put/get methods and putAsync/getAsync methods.
    • Enabled automatic periodic cache cleanup with configurable cleanup interval (cleanupIntervalMillis).
    • Provided optional logging functionality to track cache operations (e.g., item addition, eviction, removal, and expiration).
    • Introduced an eviction callback function to notify when items are evicted from the cache.
    • Added CacheBuilder class for flexible and fluent configuration of cache settings (TTL, max size, cleanup interval, logging, eviction callback).