Memcached   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace MatthiasMullie\Scrapbook\Adapters\Collections;
4
5
use MatthiasMullie\Scrapbook\Adapters\Collections\Utils\PrefixReset;
6
use MatthiasMullie\Scrapbook\Adapters\Memcached as Adapter;
7
8
/**
9
 * Memcached adapter for a subset of data, accomplished by prefixing keys.
10
 *
11
 * I would like to OPT_PREFIX_KEY on the client, but since $client is a
12
 * reference to the one in parent, that prefix would also be applied
13
 * there. Instead, I'll manually apply the prefix to all keys prior to
14
 * them going out to the server - this will have the exact same result!
15
 *
16
 * @author Matthias Mullie <[email protected]>
17
 * @copyright Copyright (c) 2014, Matthias Mullie. All rights reserved
18
 * @license LICENSE MIT
19
 */
20
class Memcached extends PrefixReset
21
{
22
    /**
23
     * @param string $name
24
     */
25
    public function __construct(Adapter $cache, $name)
26
    {
27
        parent::__construct($cache, $name);
28
    }
29
}
30