Package me.saro.kit
Class CacheStore<ID,T>
java.lang.Object
me.saro.kit.CacheStore<ID,T>
- Type Parameters:
T-ID-
public class CacheStore<ID,T>
extends java.lang.Object
- Author:
- PARK Yong Seo
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCacheStore.CacheWrapper<T> -
Constructor Summary
Constructors Constructor Description CacheStore(long cacheTimeMillis) -
Method Summary
-
Constructor Details
-
CacheStore
public CacheStore(long cacheTimeMillis)
-
-
Method Details
-
get
get- Parameters:
id- idorElse- or else value- Returns:
-
getAfterForcedUpdate
get after forced update- Parameters:
id- idvalue- update value- Returns:
-
remove
remove- Parameters:
id- id
-
clear
public void clear()clear
-