Skip to content

Commit d1b99f8

Browse files
committed
Add fill
1 parent 1dfcd51 commit d1b99f8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/BaseRedis.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,9 @@ public function brpoplpush($srcKey, $dstKey, $timeout)
142142

143143
return $data;
144144
}
145+
146+
public function fill()
147+
{
148+
$this->pool->fill();
149+
}
145150
}

src/Redis.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,9 @@ public function getConfig(): array
7474
{
7575
return $this->config;
7676
}
77+
78+
public function fill(): void
79+
{
80+
$this->pools->fill();
81+
}
7782
}

0 commit comments

Comments
 (0)