Closed kalmarek closed 11 months ago
ok, this issue should probably go to Memoize.jl
as it tries to call the first argument in @memoize
macro, but now the maxsize keyword is obligatory:
julia> lru = LRU{Tuple{Any,Any},Any}(;maxsize=2)
LRU{Tuple{Any,Any},Any} with 0 entries
julia> @memoize ()->lru function x(a, b)
println("Running")
a + b
end
x (generic function with 1 method)
julia> x(2,3)
Running
5
julia> x(2,3)
5
I get
maybe it'd be a good idea to add
LRUCache
to[Extras]
inMemoize.jl
? EDIT: