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 aae039a commit 13cac67Copy full SHA for 13cac67
src/Redis.php
@@ -58,13 +58,11 @@ public function get($key)
58
public function set($key, $value)
59
{
60
if ($this->ttl === 0) {
61
- $this->client->set($this->prefix . $key, $value);
62
-
63
- return;
+ return $this->client->set($this->prefix . $key, $value);
64
}
65
66
- $this->client->set($this->prefix . $key, $value)->then(function () use ($key) {
67
- $this->client->expire($this->prefix . $key, $this->ttl);
+ return $this->client->set($this->prefix . $key, $value)->then(function () use ($key) {
+ return $this->client->expire($this->prefix . $key, $this->ttl);
68
});
69
70
0 commit comments