Package io.jans.service
Class BaseCacheService
java.lang.Object
io.jans.service.BaseCacheService
- All Implemented Interfaces:
CacheInterface
- Direct Known Subclasses:
CacheService
Provides operations with cache
- Author:
- Yuriy Movchan Date: 01.24.2012, Yuriy Zabrovarnyy Date: 02.02.2017
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear()protected abstract CacheProvider<T> TgetWithPut(String key, Supplier<T> loadFunction, int expirationInSeconds) voidvoidvoid
-
Field Details
-
DEFAULT_EXPIRATION
public static int DEFAULT_EXPIRATION
-
-
Constructor Details
-
BaseCacheService
public BaseCacheService()
-
-
Method Details
-
get
- Specified by:
getin interfaceCacheInterface
-
getWithPut
-
put
- Specified by:
putin interfaceCacheInterface
-
remove
- Specified by:
removein interfaceCacheInterface
-
clear
public void clear()- Specified by:
clearin interfaceCacheInterface
-
cleanup
- Specified by:
cleanupin interfaceCacheInterface
-
put
-
getCacheProvider
-