- $key = wfMemcKey( get_class( $this ), 'attempt', $this->mType, $this->mKey, $ip );
+ $key = $cache->makeKey( static::class, 'attempt', $this->mType, $this->mKey, $ip );
if ( $cache->get( $key ) ) {
return; // possibly the same user
}
$cache->set( $key, 1, self::MISS_TTL_SEC );
# Increment the number of cache misses...
if ( $cache->get( $key ) ) {
return; // possibly the same user
}
$cache->set( $key, 1, self::MISS_TTL_SEC );
# Increment the number of cache misses...
if ( $cache->get( $key ) === false ) {
$cache->set( $key, 1, self::MISS_TTL_SEC );
} else {
if ( $cache->get( $key ) === false ) {
$cache->set( $key, 1, self::MISS_TTL_SEC );
} else {
- protected function cacheMissKey() {
- return wfMemcKey( get_class( $this ), 'misses', $this->mType, $this->mKey );
+ protected function cacheMissKey( BagOStuff $cache ) {
+ return $cache->makeKey( static::class, 'misses', $this->mType, $this->mKey );