object LRUCache
Utility to create a cache with LRU semantics.
The original purpose of having an LRU cache in Chronon is to cache KVStore calls and decoded IRs in the Fetcher. This helps decrease to feature serving latency.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LRUCache
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[KEY <: AnyRef, VALUE <: AnyRef](cacheName: String, maximumSize: Int = 10000): Cache[KEY, VALUE]
Build a bounded, thread-safe Caffeine cache that stores KEY-VALUE pairs.
Build a bounded, thread-safe Caffeine cache that stores KEY-VALUE pairs.
- KEY
The type of the key used to access the cache
- VALUE
The type of the value stored in the cache
- cacheName
Name of the cache
- maximumSize
Maximum number of entries in the cache
- returns
Caffeine cache
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
collectCaffeineCacheMetrics(metricsContext: Context, cache: Cache[_, _], cacheName: String): Unit
Report metrics for a Caffeine cache.
Report metrics for a Caffeine cache. The "cache" tag is added to all metrics.
- metricsContext
Metrics.Context for recording metrics
- cache
Caffeine cache to get metrics from
- cacheName
Cache name for tagging
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()