We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents af4fa83 + 08ac3d0 commit e363dd8Copy full SHA for e363dd8
src/Service.php
@@ -7,18 +7,23 @@
7
class Service
8
{
9
private $storageadapter;
10
- private $prefix;
+ private $prefix = '';
11
12
public function __construct($storageadapter)
13
14
$this->storageadapter = $storageadapter;
15
}
16
-
+
17
public function setKeyPrefix($prefix)
18
19
$this->prefix = $prefix;
20
21
22
+ public function getKeyPrefix()
23
+ {
24
+ return $this->prefix;
25
+ }
26
27
public function get($key)
28
29
return $this->storageadapter->getData($this->prefix . $key);
0 commit comments