Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fast Flexible Efficient In Memory Java LRU cache, As describe in
Java
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
README.md Rename README to README.md
build.xml Add FileContentCache a sample usage

README.md

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.

Something went wrong with that request. Please try again.