Code Duplication    Length = 10-10 lines in 2 locations

Sources/CacheAPI-apc.php 1 location

@@ 48-57 (lines=10) @@
45
	/**
46
	 * {@inheritDoc}
47
	 */
48
	public function putData($key, $value, $ttl = null)
49
	{
50
		$key = $this->prefix . strtr($key, ':/', '-_');
51
52
		// An extended key is needed to counteract a bug in APC.
53
		if ($value === null)
54
			return apc_delete($key . 'smf');
55
		else
56
			return apc_store($key . 'smf', $value, $ttl);
57
	}
58
59
	/**
60
	 * {@inheritDoc}

Sources/CacheAPI-apcu.php 1 location

@@ 48-57 (lines=10) @@
45
	/**
46
	 * {@inheritDoc}
47
	 */
48
	public function putData($key, $value, $ttl = null)
49
	{
50
		$key = $this->prefix . strtr($key, ':/', '-_');
51
52
		// An extended key is needed to counteract a bug in APC.
53
		if ($value === null)
54
			return apcu_delete($key . 'smf');
55
		else
56
			return apcu_store($key . 'smf', $value, $ttl);
57
	}
58
59
	/**
60
	 * {@inheritDoc}