1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 20:54:04 +00:00

Update RedisStorageDriver with the interface change

This commit is contained in:
Samuel Štancl 2019-04-23 17:11:05 +02:00
parent 61c87ef08e
commit 9e4849439f

View file

@ -83,7 +83,7 @@ class RedisStorageDriver implements StorageDriver
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);
}
@ -94,7 +94,7 @@ class RedisStorageDriver implements StorageDriver
return $value;
}
public function putMany(string $uuid, array $values)
public function putMany(string $uuid, array $values): array
{
$this->redis->hmset("tenants:$uuid", $values);
return $values;