We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16e2f8a commit f659159Copy full SHA for f659159
src/AbstractCounter.php
@@ -132,6 +132,32 @@ protected function getExpiry()
132
return $this->expiry;
133
}
134
135
+ /**
136
+ * Reload counter with initial value
137
+ *
138
+ * @return bool
139
+ */
140
+ public function reload()
141
+ {
142
+ return $this->client->set(
143
+ $this->getKey(),
144
+ $this->getInitialValue(),
145
+ $this->getExpiry()
146
+ );
147
+ }
148
+
149
150
+ * Delete counter
151
152
153
154
+ public function delete()
155
156
+ return $this->client->delete(
157
+ $this->getKey()
158
159
160
161
/**
162
* Method for building cache key based on $item value
163
*
0 commit comments