Digipost Caching

Caching functionality.

License

License

GroupId

GroupId

no.digipost
ArtifactId

ArtifactId

cache
Last Version

Last Version

1.3
Release Date

Release Date

Type

Type

jar
Description

Description

Digipost Caching
Caching functionality.
Project Organization

Project Organization

Digipost Open Source
Source Code Management

Source Code Management

https://github.com/digipost/digipost-cache/

Download cache

How to add to project

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

Dependencies

compile (5)

Group / Artifact Type Version
com.google.guava : guava jar 18.0
joda-time : joda-time jar 2.7
com.github.runeflobakk : motif jar 0.7
org.slf4j : slf4j-api jar 1.7.12
org.mockito : mockito-core jar 1.10.19

test (3)

Group / Artifact Type Version
junit : junit jar 4.12
org.hamcrest : hamcrest-library jar 1.3
org.slf4j : slf4j-simple jar 1.7.12

Project Modules

There are no modules declared in this project.

Digipost Cache

Digipost Cache in Maven Central Repository Build Status License

Library containing caching functionality used by Digipost projects.

Feature overview

In-memory cache

The entry point for creating in-memory caches can be found in the no.digipost.cache2.inmemory package, which wraps the Caffeine cache implementation. In addition to standard key-value cache, this library also offers a specialized API for caching a shared single object (SingleCached<V>).

Fallback

Digipost Cache also supports a fallback-concept, currently implemented as storing cache values on the file system. In the event of a cache value Loader failing (e.g. if it resolves the value over the network or other error-prone I/O), the last value it successfully loaded will instead be read from a disk-file. Other ways to store and read values for fallback can be implemented by implementing FallbackKeeper for storing a value for fallback, and the already mentioned Loader for loading an already stored fallback value.

no.digipost

Digipost

Digipost er Norges digitale postsystem utviklet av Posten Norge AS.

Versions

Version
1.3
1.2.1
1.2
1.1
1.0