Merge "Cache countable statistics to prevent multiple counting on import"
[lhc/web/wiklou.git] / includes / objectcache / HashBagOStuff.php
index a466282..278a74e 100644 (file)
@@ -57,7 +57,7 @@ class HashBagOStuff extends BagOStuff {
         * @param mixed $casToken [optional]
         * @return bool|mixed
         */
-       function get( $key, &$casToken = null ) {
+       public function get( $key, &$casToken = null ) {
                if ( !isset( $this->bag[$key] ) ) {
                        return false;
                }
@@ -77,7 +77,7 @@ class HashBagOStuff extends BagOStuff {
         * @param int $exptime
         * @return bool
         */
-       function set( $key, $value, $exptime = 0 ) {
+       public function set( $key, $value, $exptime = 0 ) {
                $this->bag[$key] = array( $value, $this->convertExpiry( $exptime ) );
                return true;
        }
@@ -89,7 +89,7 @@ class HashBagOStuff extends BagOStuff {
         * @param int $exptime
         * @return bool
         */
-       function cas( $casToken, $key, $value, $exptime = 0 ) {
+       protected function cas( $casToken, $key, $value, $exptime = 0 ) {
                if ( $this->get( $key ) === $casToken ) {
                        return $this->set( $key, $value, $exptime );
                }