I decided to handle this by explicitly ignoring the error, as there are no reasons why the function of my application will not work if the caching component does not work. Of course, you could do the log statement or whatever you want, but I decided not to do anything.
I created my own Cache class and used this to isolate the domain code from Dalli. Here is the relevant part:
def Cache.get(key) Configuration.dalliClient.get(key) rescue Dalli::RingError nil end
source share