iron-io / iron_cache_rails

Rails cache store and session store using IronCache by www.iron.io
7 stars 4 forks source link

Ignore 404 on delete missing keys #15

Open elado opened 8 years ago

elado commented 8 years ago
Rails.cache.delete "missing_key"

raises Rest::HttpError: HTTP 404 Error: Key not found which is usually useless information. Is there a configuration that ignores those errors?

It doesn't happen with the default Rails cache client (:file_store) -- deleting missing keys just returns nil.

treeder commented 8 years ago

Can you make a pull request?

On Sat, Apr 30, 2016, 3:15 PM Elad Ossadon notifications@github.com wrote:

Rails.cache.delete "missing_key"

raises Rest::HttpError: HTTP 404 Error: Key not found which is usually useless information. Is there a configuration that ignores those errors?

It doesn't happen with the default Rails cache client (:file_store) -- deleting missing keys just returns nil.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/iron-io/iron_cache_rails/issues/15