From e2e6b161239ece68d1f95a0d548c0498b324b8ba Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 25 Jan 2013 11:50:02 -0800 Subject: [PATCH] Improved BagOStuff docs. Change-Id: I01c62de23b73e1bac96aede73cd6995df8ff1221 --- includes/objectcache/BagOStuff.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/objectcache/BagOStuff.php b/includes/objectcache/BagOStuff.php index 03b0d5b920..1205ceb842 100644 --- a/includes/objectcache/BagOStuff.php +++ b/includes/objectcache/BagOStuff.php @@ -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 -- 2.20.1