Skip to content

Commit 5453509

Browse files
committed
Ignore lru cache in hash of Processresultcache
1 parent 6b66aab commit 5453509

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/RecoPlans/Cache.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ function Base.hash(parameter::T, h::UInt64) where T <: AbstractImageReconstructi
142142
end
143143
return h
144144
end
145+
function Base.hash(parameter::ProcessResultCache, h::UInt64)
146+
return hash(typeof(parameter), hash(parameter.maxsize, hash(parameter.param, h)))
147+
end
145148

146149

147150
function showproperty(io::IO, name, property::RecoPlan{ProcessResultCache}, indent, islast, depth)

0 commit comments

Comments
 (0)