Skip to content

Added ability to use Caffeine for Caching, which enables additional features like eviction, which is not supported by existing ConcurrentHashMap parseCache (#45) #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

siddarthaboddu
Copy link

Issue: #45
This change is to provide clients option to use Caffeine with a pre configured max size, so that the parseCache does not grow indefinitely which were causing JVM high memory issues

Changes:

  • Added CacheManager interface to be able to use ConcurrentHashMap or Caffeine for caching.
  • Added ConcurrentHashMapCacheManager class which uses ConcurrentHashMap for caching, this will be default behaviour ensuring backward compatibility.
  • Added CaffeineCacheManager which uses Caffeine for caching, and provides option to specify a max size of the cache.
  • Minor update to the version from 1.1.1-SNAPSHOT to 1.1.2-SNAPSHOT

…es like eviction to be used which are not supported by existing ConcurrenctHashMap caching (jamsesso#45)

- Added CacheManager interface to be able to use ConcurrentHashMap or Caffeine for caching.
- Added ConcurrentHashMapCacheManager class which uses ConcurrentHashMap for caching, this will be default behaviour unless client uses CaffeineCacheManager.
- Added CaffeineCacheManager which uses Caffeine for caching.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant