You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
** (ArgumentError) you attempted to apply a function on {MyApp.Cache, :get_cache, []}. Modules (the first argument of apply) must always be an atom
(nebulex 2.4.2) lib/nebulex/caching.ex:827: Nebulex.Caching.run_cmd/5
Is this expected behaviour?
Thanks!
The text was updated successfully, but these errors were encountered:
Hey 👋 !! Yeah, that is expected because the :cache option is resolved in compilation time, so when you do something like cache: @my_cache in the decorator, since it is a constant, what is received in the decorator is the constant itself, means the cache will be that constant, not expanded value. However, this is something we can handle maybe in runtime, making this possible, Let me think about that option (handling the :cache option in runtime) and maybe create a separate ticket. In the meantime, yeah, it is an expected behaviour.
Hi,
The following works:
While the following fails:
The error I'm getting is:
Is this expected behaviour?
Thanks!
The text was updated successfully, but these errors were encountered: