mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 04:04:04 +00:00
Update RedisStorageDriver with the interface change
This commit is contained in:
parent
61c87ef08e
commit
9e4849439f
1 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ class RedisStorageDriver implements StorageDriver
|
||||||
return $this->redis->hget("tenants:$uuid", $key);
|
return $this->redis->hget("tenants:$uuid", $key);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getMany(string $uuid, array $keys)
|
public function getMany(string $uuid, array $keys): array
|
||||||
{
|
{
|
||||||
return $this->redis->hmget("tenants:$uuid", $keys);
|
return $this->redis->hmget("tenants:$uuid", $keys);
|
||||||
}
|
}
|
||||||
|
|
@ -94,7 +94,7 @@ class RedisStorageDriver implements StorageDriver
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function putMany(string $uuid, array $values)
|
public function putMany(string $uuid, array $values): array
|
||||||
{
|
{
|
||||||
$this->redis->hmset("tenants:$uuid", $values);
|
$this->redis->hmset("tenants:$uuid", $values);
|
||||||
return $values;
|
return $values;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue