@@ -87,6 +87,9 @@ discard block |
||
87 | 87 | return true; |
88 | 88 | } |
89 | 89 | |
90 | + /** |
|
91 | + * @param string $key |
|
92 | + */ |
|
90 | 93 | public function delete($key, $timeout = 0) |
91 | 94 | { |
92 | 95 | if (!$this->check()) { |
@@ -100,6 +103,10 @@ discard block |
||
100 | 103 | return $this->memcache->delete($key, $timeout); |
101 | 104 | } |
102 | 105 | |
106 | + /** |
|
107 | + * @param string $key |
|
108 | + * @param string $value |
|
109 | + */ |
|
103 | 110 | public function set($key, $value, $expire = 0, $flag = 2) |
104 | 111 | { |
105 | 112 | if (!$this->check()) { |
@@ -113,6 +120,9 @@ discard block |
||
113 | 120 | return $this->memcache->set($key, $value, $flag, $expire); |
114 | 121 | } |
115 | 122 | |
123 | + /** |
|
124 | + * @param string $key |
|
125 | + */ |
|
116 | 126 | public function get($key, $flag = 2) |
117 | 127 | { |
118 | 128 | if (!$this->check()) { |
@@ -126,6 +136,9 @@ discard block |
||
126 | 136 | return $this->memcache->get($key, $flag); |
127 | 137 | } |
128 | 138 | |
139 | + /** |
|
140 | + * @param string $key |
|
141 | + */ |
|
129 | 142 | public function getSetGet($key, Closure $callback, $ttl = 0, $flag = 2) |
130 | 143 | { |
131 | 144 | if (!$this->check()) { |