class
TTLCache[K, V] extends Cache[K, (Long, V)]
Instance Constructors
-
new
TTLCache(ttl: Long, cache: Map[K, (Long, V)])(clock: () ⇒ Long)
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(kv: (K, (Long, V))): Cache[K, (Long, V)]
-
def
-(k: K): Cache[K, (Long, V)]
-
def
--(ks: Set[K]): Cache[K, (Long, V)]
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
val
clock: () ⇒ Long
-
def
clone(): AnyRef
-
def
contains(k: K): Boolean
-
def
empty: TTLCache[K, V]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
evict(k: K): (Option[(Long, V)], Cache[K, (Long, V)])
-
def
expired(k: K): Boolean
-
def
finalize(): Unit
-
def
get(k: K): Option[(Long, V)]
-
final
def
getClass(): java.lang.Class[_]
-
def
getNonExpired(k: K): Option[V]
-
def
hashCode(): Int
-
def
hit(k: K): TTLCache[K, V]
-
final
def
isInstanceOf[T0]: Boolean
-
def
iterator: Iterator[(K, (Long, V))]
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
put(kv: (K, (Long, V))): (Set[K], TTLCache[K, V])
-
def
putClocked(kv: (K, V)): (Set[K], TTLCache[K, V])
-
def
putWithTime(kv: (K, (Long, V)), currentMillis: Long): (Set[K], TTLCache[K, V])
-
def
removeExpired: (Set[K], TTLCache[K, V])
-
def
seed(m: Map[K, (Long, V)]): Cache[K, (Long, V)]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toMap: Map[K, (Long, V)]
-
def
toMutable(exhaustFn: (Set[K]) ⇒ Unit = _ => ()): MutableCache[K, (Long, V)]
-
def
toNonExpiredMap: Map[K, V]
-
def
toRemove(currentMillis: Long): Set[K]
-
def
toString(): String
-
def
touch(k: K, v: ⇒ (Long, V)): Cache[K, (Long, V)]
-
val
ttl: Long
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from Cache[K, (Long, V)]
Inherited from AnyRef
Inherited from Any