Package | Description |
---|---|
sirius.kernel.cache |
Provides a framework for building and using caches.
|
Modifier and Type | Method and Description |
---|---|
static <E> InlineCache<E> |
CacheManager.createInlineCache(Duration ttl,
Supplier<E> computer)
Creates a new
InlineCache with the given TTL and computer. |
static <E> InlineCache<E> |
CacheManager.createTenSecondsInlineCache(Supplier<E> computer)
Boilerplate method for
CacheManager.createInlineCache(Duration, Supplier)
which keeps the computed value for up to 10 seconds. |
Copyright © 2018. All rights reserved.