Permalink
Browse files

Add dalli client accessor to dalli_store

  • Loading branch information...
1 parent 148cac0 commit 2ea48abaeacec0e4393344941fe9f674d9f6cfa1 @mperham mperham committed Dec 3, 2012
Showing with 13 additions and 0 deletions.
  1. +6 −0 History.md
  2. +7 −0 lib/active_support/cache/dalli_store.rb
View
@@ -1,6 +1,12 @@
Dalli Changelog
=====================
+HEAD
+=======
+
+- Add `dalli` accessor to dalli_store to access the underlying
+Dalli::Client, for things like `get_multi`.
+
2.5.0
=======
@@ -49,6 +49,13 @@ def initialize(*addresses)
extend Strategy::LocalCache
end
+ ##
+ # Access the underlying Dalli::Client instance for
+ # access to get_multi, etc.
+ def dalli
+ @data
+ end
+
def fetch(name, options=nil)
options ||= {}
name = expanded_key name

0 comments on commit 2ea48ab

Please sign in to comment.