Memcached::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
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