Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fast Flexible Efficient In Memory Java LRU cache, As describe in
branch: master
Failed to load latest commit information.
examples/utils/cache Fix another typo (thanks henry).
lib first commit
src/utils first commit
tests/utils/cache first commit Rename README to
build.xml Add FileContentCache a sample usage

Cache -- An LRU Java Cache


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[]>() {
                public byte[] compute(String key) throws Exception {
                    return readFileContent(new File(key));
            }, 10);

See examples directory.

Something went wrong with that request. Please try again.