rescue NoMethodError for dalli>2.x

fixes #2130
Merge pull request #2167 from sbeam/1-0-stable

rescue NoMethodError for dalli>2.x