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

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