T - public final class Cacheable<T> extends Object
| Constructor and Description |
|---|
Cacheable(T value,
CachingInfo cachingInfo) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Cacheable<T> |
conditionally(T value) |
static <T> Cacheable<T> |
forForever(T value) |
static <T> Cacheable<T> |
forMaxDays(T value,
int d) |
static <T> Cacheable<T> |
forMaxHours(T value,
int h) |
static <T> Cacheable<T> |
forMaxMinutes(T value,
int m) |
static <T> Cacheable<T> |
forMaxSeconds(T value,
int s) |
CachingInfo |
getCachingInfo() |
T |
getValue() |
static <T> Cacheable<T> |
never(T value) |
public Cacheable(T value, CachingInfo cachingInfo)
public static <T> Cacheable<T> never(T value)
public static <T> Cacheable<T> conditionally(T value)
public static <T> Cacheable<T> forMaxSeconds(T value, int s)
public static <T> Cacheable<T> forMaxMinutes(T value, int m)
public static <T> Cacheable<T> forMaxHours(T value, int h)
public static <T> Cacheable<T> forMaxDays(T value, int d)
public static <T> Cacheable<T> forForever(T value)
public T getValue()
public CachingInfo getCachingInfo()
Copyright © 2010–2016. All rights reserved.