public
Rubygem
Description: Ramaze is a simple, light and modular open-source web application framework written in Ruby.
Homepage: http://ramaze.net
Clone URL: git://github.com/manveru/ramaze.git
Click here to lend your support to: ramaze and make a donation at www.pledgie.com !
Updates Memcached comments to recognise why get_multi may not be available.
Sam Carr (author)
Thu Jun 19 06:42:44 -0700 2008
manveru (committer)
Mon Jul 21 04:52:54 -0700 2008
commit  28f90e25f01136be619dbd6755dd8d3a142f8b51
tree    6f14eb428b9c491fb8814b828e06191a29bb61cf
parent  8ebf919d6042009df8617479d0388b6142dcf092
...
43
44
45
46
47
48
49
50
 
51
52
 
 
53
54
55
...
43
44
45
 
 
 
 
 
46
47
48
49
50
51
52
53
0
@@ -43,13 +43,11 @@ module Ramaze
0
       nil
0
     end
0
 
0
-    # out of some reason MemCache sometimes doesn't respond to
0
-    # get_multi, have to investigate this further.
0
-    #
0
-    # for now, i'll just use the dumbed down version and ask it
0
-    # whether it implements this functionality or not.
0
+    # Fetch for multiple keys at once.
0
 
0
     def get_multi(*keys)
0
+      # MemCache only responds to get_multi if the memcache-client_extensions gem
0
+      # is installed, so we check first and resort to another approach if not.
0
       if @cache.respond_to?(:get_multi)
0
         @cache.get_multi(*keys)
0
       else

Comments