Code Duplication    Length = 9-17 lines in 3 locations

src/ApcCache.php 1 location

@@ 279-287 (lines=9) @@
276
     *
277
     * @return  mixed
278
     */
279
    private function setNamespaceKey() {
280
281
        $uId = self::getUniqueId();
282
283
        $return = apc_store($this->getNamespace(), $uId, 0);
284
285
        return $return === false ? false : $uId;
286
287
    }
288
289
    /**
290
     * Get namespace key

src/MemcachedCache.php 1 location

@@ 352-360 (lines=9) @@
349
     *
350
     * @return  mixed
351
     */
352
    private function setNamespaceKey() {
353
354
        $uId = self::getUniqueId();
355
356
        $return = $this->instance->set($this->getNamespace(), $uId, 0);
357
358
        return $return === false ? false : $uId;
359
360
    }
361
362
    /**
363
     * Get key for namespace

src/PhpRedisCache.php 1 location

@@ 401-417 (lines=17) @@
398
     *
399
     * @return  string
400
     */
401
    private function setNamespaceKey() {
402
403
        $uId = self::getUniqueId();
404
405
        try {
406
407
            $return = $this->instance->set($this->getNamespace(), $uId);    
408
409
        } catch (RedisException $re ) {
410
411
            throw $re;
412
413
        }
414
415
        return $return === false ? false : $uId;
416
417
    }
418
419
    /**
420
     * Get key for namespace