(Nebulex.RegistryLookupError) could not lookup Nebulex cache Payment.Cache because it was not started or it does not exist
(nebulex 2.6.3) lib/nebulex/cache/registry.ex:22: Nebulex.Cache.Registry.lookup/1
(nebulex 2.6.3) lib/nebulex/adapter.ex:44: Nebulex.Adapter.with_meta/2
(nebulex 2.6.3) lib/nebulex/cache/entry.ex:42: Nebulex.Cache.Entry.put/4
iex:3: (file)
defmodule NebulexPrac.Application do
use Application
def start(_type, _args) do
children = [Payment.Cache]
opts = [strategy: :one_for_one, name: NebulexPrac.Supervisor]
Supervisor.start_link(children, opts)
end
end
Is the Payment.Cache module under the NebulexPrac namespace? You need to pass the full name (unless you alias it)
defmodule NebulexPrac.Application do
use Application
def start(_type, _args) do
children = [NebulexPrac.Payment.Cache] # Here it needs to be the full module name
opts = [strategy: :one_for_one, name: NebulexPrac.Supervisor]
Supervisor.start_link(children, opts)
end
end