Skip to content

dtkmn/Cache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cache -- An LRU Java Cache

DESCRIPTION

Fast Flexible efficient in memory LRU Java cache This repository has the sources to my post. You may copy or use any part of the code freely. Barak. Sample Usage:

 Cache<String, byte[]> fileContentCache =
            new Cache<String, byte[]>(new Compute<String, byte[]>() {
                @Override
                public byte[] compute(String key) throws Exception {
                    return readFileContent(new File(key));
                }
            }, 10);

See examples directory.

About

Fast Flexible Efficient In Memory Java LRU cache, As describe in

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published