Skip to content

prkprime/LRU-JCache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages