dev.mongocamp.driver.mongodb.relation.RelationCache.scala Maven / Gradle / Ivy
package dev.mongocamp.driver.mongodb.relation
object RelationCache extends RelationCaching {
var relationCaching: RelationCaching = new DefaultRelationCache
override def addCachedValue(key: String, value: AnyRef): Unit =
relationCaching.addCachedValue(key, value)
override def getCachedValue[B <: AnyRef](key: String): B =
relationCaching.getCachedValue[B](key)
override def hasCachedValue(key: String): Boolean =
relationCaching.hasCachedValue(key)
override def removeCachedValue(key: String): Unit =
relationCaching.removeCachedValue(key)
}