Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java LRU Cache

Simple implementation of javax.cache.Cache with fixed size and LRU (Least Recently Used) eviction policy.

Compile and Install locally

mvn clean install -U

Usage

Add dependency after locally installing the jar

<dependency>
  <groupId>dev.prkprime</groupId>
  <artifactId>LRU-JCache</artifactId>
  <version>1.0-SNAPSHOT</version>
</dependency>

Create a new instance of LRUCache with a name and a maximum size. Note: this lacks full implementation of javax.cache.Cache and only basic methods are implemented. CacheManager and CacheProvider are not implemented.

LRUCache<String, String> cache = new LRUCache<>("test", 50);

About

Java Cache with fixed size and LRU eviction policy

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages