Skip to content

Commit 65ffa53

Browse files
committed
Add conv. constructor for ProcessResultCache
1 parent 9aa3b5b commit 65ffa53

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/RecoPlans/Cache.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Base.@kwdef mutable struct ProcessResultCache{P <: AbstractImageReconstructionPa
44
const maxsize::Int64 = 1
55
cache::LRU{UInt64, Any} = LRU{UInt64, Any}(maxsize = maxsize)
66
end
7+
ProcessResultCache(param::AbstractImageReconstructionParameters; kwargs...) = ProcessResultCache(;param, kwargs...)
78
process(algo::A, param::ProcessResultCache, inputs...) where {A <: AbstractImageReconstructionAlgorithm} = hashed_process(algo, param, inputs...)
89
process(algoT::Type{<:A}, param::ProcessResultCache, inputs...) where {A <: AbstractImageReconstructionAlgorithm} = hashed_process(algoT, param, inputs...)
910

0 commit comments

Comments
 (0)