rescue NoMethodError for dalli>2.x

fixes #2130