@@ 113-119 (lines=7) @@ | ||
110 | /** |
|
111 | * @inheritdoc |
|
112 | */ |
|
113 | public function increment($name, $offset = 1) |
|
114 | { |
|
115 | $success = false; |
|
116 | $value = wincache_ucache_inc($name, $offset, $success); |
|
117 | ||
118 | return ($success === true) ? $value : false; |
|
119 | } |
|
120 | ||
121 | /** |
|
122 | * @inheritdoc |
|
@@ 124-130 (lines=7) @@ | ||
121 | /** |
|
122 | * @inheritdoc |
|
123 | */ |
|
124 | public function decrement($name, $offset = 1) |
|
125 | { |
|
126 | $success = false; |
|
127 | $value = wincache_ucache_dec($name, $offset, $success); |
|
128 | ||
129 | return ($success === true) ? $value : false; |
|
130 | } |
|
131 | } |
|
132 |