Code Duplication    Length = 9-9 lines in 2 locations

includes/libs/objectcache/WANObjectCache.php 2 locations

@@ 486-494 (lines=9) @@
483
			$ok = $this->cache->delete( $key );
484
			// Publish the purge to all datacenters
485
			$ok = $this->relayDelete( $key ) && $ok;
486
		} else {
487
			// Update the local datacenter immediately
488
			$ok = $this->cache->set( $key,
489
				$this->makePurgeValue( microtime( true ), self::HOLDOFF_NONE ),
490
				$ttl
491
			);
492
			// Publish the purge to all datacenters
493
			$ok = $this->relayPurge( $key, $ttl, self::HOLDOFF_NONE ) && $ok;
494
		}
495
496
		return $ok;
497
	}
@@ 524-532 (lines=9) @@
521
		$purge = self::parsePurgeValue( $this->cache->get( $key ) );
522
		if ( $purge !== false ) {
523
			$time = $purge[self::FLD_TIME];
524
		} else {
525
			// Casting assures identical floats for the next getCheckKeyTime() calls
526
			$now = (string)microtime( true );
527
			$this->cache->add( $key,
528
				$this->makePurgeValue( $now, self::HOLDOFF_TTL ),
529
				self::CHECK_KEY_TTL
530
			);
531
			$time = (float)$now;
532
		}
533
534
		return $time;
535
	}