Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ class ExecutionEngine(val queryService: GraphDatabaseQueryService,
// fetch plan cache
val cache: QueryCache[String, (ExecutionPlan, Map[String, Any], Seq[String])] = getOrCreateFromSchemaState(tc.schemaRead, {
cacheMonitor.cacheFlushDetected(tc.statement)
val lruCache = new LFUCache[String, (ExecutionPlan, Map[String, Any], Seq[String])](getPlanCacheSize)
new QueryCache(cacheAccessor, lruCache)
val lfuCache = new LFUCache[String, (ExecutionPlan, Map[String, Any], Seq[String])](getPlanCacheSize)
new QueryCache(cacheAccessor, lfuCache)
})

def isStale(plan: ExecutionPlan, ignored1: Map[String, Any], ignored2: Seq[String]) = plan.isStale(lastCommittedTxId, tc)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class LFUCache[K <: AnyRef, V <: AnyRef](val size: Int) extends ((K, => V) => V)
def apply(key: K, value: => V): V = getOrElseUpdate(key, value)

/**
* Method for clearing the LRUCache
* Method for clearing the LFUCache
* @return the number of elements in the cache prior to the clearing
*/
def clear(): Long = {
Expand Down
Loading