lib/cachew/adapters.rb in cachew-0.1.0 vs lib/cachew/adapters.rb in cachew-0.1.1
- old
+ new
@@ -5,9 +5,10 @@
class Cachew
module Adapters
def self.build_adapter_for(store)
case store
when BaseAdapter then store
+ when Cachew then store.adapter
when Hash then HashAdapter.new(store)
else NullAdapter.new
end
end
end