extends SimpleLRUTimeEvictCache
and override function loadData
override protected def loadData(k: K): V = {
// TODO: Get data code here...
}
override protected def maxSize: Long = 1000L
override protected def expiredAfterWrite: Option[(Long, TimeUnit)] = Some(5L, TimeUnit.MINUTES)
override protected def expiredAfterAccess: Option[(Long, TimeUnit)] = Some(5L, TimeUnit.MINUTES)
override def refreshAfterWrite: Option[(Long, TimeUnit)] = Some(2L, SECONDS)
override protected def removal(notification: RemovalNotification[K, V]) = {
// TODO: handle code here...
}
protected def remove(k: K)
protected def remove(k: Iterable[K])
protected def removeAll()