sasa1977 / con_cache

ets based key/value cache with row level isolated writes and ttl support
MIT License
910 stars 71 forks source link

Putting into wrong cache name hangs #36

Closed Nagasaki45 closed 7 years ago

Nagasaki45 commented 7 years ago

I started a cache with

supervisor(ConCache, [[], [name: :queue]])

And then, by mistake, called ConCache.put(:my_cache, :key, :value) (notice the wrong cache name). The call just hangs. Wouldn't it be better for it to throw an exception instead?

Elixir: 1.4.4 con_cache: 0.12.0

sasa1977 commented 7 years ago

Thanks for reporting!