Improved BagOStuff docs.
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 25 Jan 2013 19:50:02 +0000 (11:50 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 25 Jan 2013 19:50:02 +0000 (11:50 -0800)
Change-Id: I01c62de23b73e1bac96aede73cd6995df8ff1221

includes/objectcache/BagOStuff.php

index 03b0d5b..1205ceb 100644 (file)
@@ -89,7 +89,9 @@ abstract class BagOStuff {
        abstract public function delete( $key, $time = 0 );
 
        /**
-        * Merge changes into the existing cache value (possibly creating a new one)
+        * Merge changes into the existing cache value (possibly creating a new one).
+        * The callback function returns the new value given the current value (possibly false),
+        * and takes the arguments: (this BagOStuff object, cache key, current value).
         *
         * @param $key string
         * @param $callback closure Callback method to be executed