mperham/dalli — pull request #214 by bunnymatic (2012-05-12 23:00:21+00:00)
Title: more robust handling of invalid 'expires-in' input options

hey there
on a new project, i was running into issues where the 'pack' call for a cache.set was failing. After tracking it backwards, i found that it was because i was feeding garbage into the :expires_in parameter. I added a quick patch to catch that on init (Client::new) instead of waiting until you call cache.set (way into the apps lifetime) to warn about that issue.

I'm not sure if this is exactly how you'd want to fix that issue, but it is a working fix. Feel free to merge in if you like. It doesn't handle all cases, but it should be a little more programmer-error resilient.

Jon