Code Duplication    Length = 9-9 lines in 2 locations

includes/libs/objectcache/WANObjectCache.php 2 locations

@@ 502-510 (lines=9) @@
499
			$ok = $this->cache->delete( $key );
500
			// Publish the purge to all datacenters
501
			$ok = $this->relayDelete( $key ) && $ok;
502
		} else {
503
			// Update the local datacenter immediately
504
			$ok = $this->cache->set( $key,
505
				$this->makePurgeValue( microtime( true ), self::HOLDOFF_NONE ),
506
				$ttl
507
			);
508
			// Publish the purge to all datacenters
509
			$ok = $this->relayPurge( $key, $ttl, self::HOLDOFF_NONE ) && $ok;
510
		}
511
512
		return $ok;
513
	}
@@ 540-548 (lines=9) @@
537
		$purge = self::parsePurgeValue( $this->cache->get( $key ) );
538
		if ( $purge !== false ) {
539
			$time = $purge[self::FLD_TIME];
540
		} else {
541
			// Casting assures identical floats for the next getCheckKeyTime() calls
542
			$now = (string)microtime( true );
543
			$this->cache->add( $key,
544
				$this->makePurgeValue( $now, self::HOLDOFF_TTL ),
545
				self::CHECK_KEY_TTL
546
			);
547
			$time = (float)$now;
548
		}
549
550
		return $time;
551
	}