Code Duplication    Length = 11-11 lines in 2 locations

Sources/CacheAPI-memcache.php 1 location

@@ 86-96 (lines=11) @@
83
	/**
84
	 * {@inheritDoc}
85
	 */
86
	public function getData($key, $ttl = null)
87
	{
88
		$key = $this->prefix . strtr($key, ':/', '-_');
89
90
		$value = $this->memcache->get($key);
91
92
		// $value should return either data or false (from failure, key not found or empty array).
93
		if ($value === false)
94
			return null;
95
		return $value;
96
	}
97
98
	/**
99
	 * {@inheritDoc}

Sources/CacheAPI-memcached.php 1 location

@@ 87-97 (lines=11) @@
84
	/**
85
	 * {@inheritDoc}
86
	 */
87
	public function getData($key, $ttl = null)
88
	{
89
		$key = $this->prefix . strtr($key, ':/', '-_');
90
91
		$value = $this->memcached->get($key);
92
93
		// $value should return either data or false (from failure, key not found or empty array).
94
		if ($value === false)
95
			return null;
96
		return $value;
97
	}
98
99
	/**
100
	 * {@inheritDoc}