Index: trunk/phase3/includes/objectcache/MemcachedClient.php |
— | — | @@ -396,7 +396,7 @@ |
397 | 397 | /** |
398 | 398 | * Retrieves the value associated with the key from the memcache server |
399 | 399 | * |
400 | | - * @param $key Mixed: key to retrieve |
| 400 | + * @param $key array|string key to retrieve |
401 | 401 | * |
402 | 402 | * @return Mixed |
403 | 403 | */ |
— | — | @@ -419,6 +419,7 @@ |
420 | 420 | return false; |
421 | 421 | } |
422 | 422 | |
| 423 | + $key = is_array( $key ) ? $key[1] : $key; |
423 | 424 | if ( isset( $this->stats['get'] ) ) { |
424 | 425 | $this->stats['get']++; |
425 | 426 | } else { |
— | — | @@ -826,9 +827,9 @@ |
827 | 828 | /** |
828 | 829 | * Perform increment/decriment on $key |
829 | 830 | * |
830 | | - * @param $cmd String: command to perform |
831 | | - * @param $key String: key to perform it on |
832 | | - * @param $amt Integer: amount to adjust |
| 831 | + * @param $cmd String command to perform |
| 832 | + * @param $key String|array key to perform it on |
| 833 | + * @param $amt Integer amount to adjust |
833 | 834 | * |
834 | 835 | * @return Integer: new value of $key |
835 | 836 | * @access private |
— | — | @@ -958,7 +959,7 @@ |
959 | 960 | } else { |
960 | 961 | $this->stats[$cmd] = 1; |
961 | 962 | } |
962 | | - |
| 963 | + |
963 | 964 | // TTLs higher than 30 days will be detected as absolute TTLs |
964 | 965 | // (UNIX timestamps), and will result in the cache entry being |
965 | 966 | // discarded immediately because the expiry is in the past. |