-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LRU example doesn't work #58
Comments
I guess this package isn't being maintained? For other users, the simple fix is just to wrap the LRU initialization in an anonymous function:
|
also JuliaCollections/LRUCache.jl#18 |
I think this was fixed, works for me now: julia> @memoize LRU{Tuple{Any,Any},Any}(maxsize=2) function x(a, b)
println("Running")
a + b
end
x (generic function with 1 method)
julia> x(1,2)
Running
3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Forgive me if I'm missing something obvious...
The text was updated successfully, but these errors were encountered: