package cache
- Alphabetic
- Public
- All
Type Members
-
trait
Cache[K <: AnyRef, V <: AnyRef] extends AnyRef
Interface to abstract object caching.
-
class
GuavaCache[K <: AnyRef, V <: AnyRef] extends Cache[K, V]
A thread-safe Scala wrapper for a Google Guava cache.
A thread-safe Scala wrapper for a Google Guava cache.
Based on https://gist.github.com/brikis98/5842766
If we later migrate to Java 8, we should consider migrating this code to Caffeine https://github.com/ben-manes/caffeine/wiki
- K
The key type.
- V
The value type.
-
class
SparkCache[K <: AnyRef, V <: AnyRef] extends Cache[K, V] with Serializable
Serializable cache that uses as backend a single cache per Spark node.
Value Members
- object GuavaCache