@@ 49-60 (lines=12) @@ | ||
46 | } |
|
47 | } |
|
48 | ||
49 | public function get($key, $ttl = 0) |
|
50 | { |
|
51 | $this->checkSession(); |
|
52 | ||
53 | $keyName = $this->keyName($key); |
|
54 | ||
55 | if (isset($_SESSION[$keyName])) { |
|
56 | return $_SESSION[$keyName]; |
|
57 | } else { |
|
58 | return null; |
|
59 | } |
|
60 | } |
|
61 | ||
62 | public function lock($key) |
|
63 | { |
|
@@ 69-78 (lines=10) @@ | ||
66 | // Nothing to implement here; |
|
67 | } |
|
68 | ||
69 | public function release($key) |
|
70 | { |
|
71 | $this->checkSession(); |
|
72 | ||
73 | $keyName = $this->keyName($key); |
|
74 | ||
75 | if (isset($_SESSION[$keyName])) { |
|
76 | unset($_SESSION[$keyName]); |
|
77 | } |
|
78 | } |
|
79 | ||
80 | public function set($key, $object, $ttl = 0) |
|
81 | { |