We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff4d2f5 commit ba34945Copy full SHA for ba34945
src/TableCache.php
@@ -121,7 +121,7 @@ private function gc(bool $force = false): void
121
{
122
if ($force || mt_rand(0, 1000000) < $this->gcProbability) {
123
$i = 100000;
124
- $table = $this->tableInstance;
+ $table = $this->tableInstance->table;
125
foreach ($table as $key => $column) {
126
if ($column['expire'] > 0 && $column['expire'] < time()) {
127
$this->deleteValue($key);
@@ -175,7 +175,7 @@ public function delete($key): bool
175
public function clear(): bool
176
177
$table = [];
178
- foreach ($this->tableInstance as $key => $column) {
+ foreach ($this->tableInstance->table as $key => $column) {
179
$table[] = $key;
180
}
181
$ret = true;
0 commit comments