artsy / garner

A set of Rack middleware and cache helpers that implement various caching strategies.
MIT License
343 stars 24 forks source link

BindingIndex and SafeCacheKey key strategies both incorrectly return non-nil cache keys for Model.identify(nil) #60

Closed fancyremarker closed 11 years ago

fancyremarker commented 11 years ago
Garner::Strategies::Binding::Key::BindingIndex.apply(Model.identify(nil))
# => "2986056a81ed9ec670d172f8"
Garner::Strategies::Binding::Key::SafeCacheKey.apply(Model.identify(nil))
# => "models/516738f913d2c34741000002-20130423234925.0000000000"

Thanks @joeyAghion for catching this.