concurrent-cache

Fast Flexible efficient in memory LRU Java cache

License

License

GroupId

GroupId

com.github.barakb
ArtifactId

ArtifactId

concurrent-cache
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

concurrent-cache
Fast Flexible efficient in memory LRU Java cache
Project URL

Project URL

https://github.com/barakb/Cache
Source Code Management

Source Code Management

https://github.com/barakb/Cache

Download concurrent-cache

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.barakb/concurrent-cache/ -->
<dependency>
    <groupId>com.github.barakb</groupId>
    <artifactId>concurrent-cache</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.barakb/concurrent-cache/
implementation 'com.github.barakb:concurrent-cache:1.0'
// https://jarcasting.com/artifacts/com.github.barakb/concurrent-cache/
implementation ("com.github.barakb:concurrent-cache:1.0")
'com.github.barakb:concurrent-cache:jar:1.0'
<dependency org="com.github.barakb" name="concurrent-cache" rev="1.0">
  <artifact name="concurrent-cache" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.barakb', module='concurrent-cache', version='1.0')
)
libraryDependencies += "com.github.barakb" % "concurrent-cache" % "1.0"
[com.github.barakb/concurrent-cache "1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.slf4j : slf4j-site jar 1.7.12
org.slf4j : slf4j-api jar 1.7.12

test (4)

Group / Artifact Type Version
org.apache.logging.log4j : log4j-slf4j-impl jar 2.2
org.apache.logging.log4j : log4j-api jar 2.2
org.apache.logging.log4j : log4j-core jar 2.2
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Build Status

Cache -- An LRU Java Cache

DESCRIPTION

Fast Flexible efficient in memory LRU Java cache This repository has the sources to my post.

Barak.

Sample Usage:

    Cache<String, byte[]> fileContentCache =
            new Cache<>(key -> readFileContent(new File(key)), 10);

See example

Maven dependency

    <dependency>
        <groupId>com.github.barakb</groupId>
        <artifactId>concurrent-cache</artifactId>
        <version>1.0</version>
    </dependency>

Versions

Version
1.0