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

Apply fixes from StyleCI

This commit is contained in:
stancl 2019-09-11 13:34:33 +00:00 committed by StyleCI Bot
parent c20942cda5
commit 311df11d0b

View file

@ -121,12 +121,14 @@ class RedisStorageDriver implements StorageDriver
public function get(string $key, Tenant $tenant = null)
{
$tenant = $tenant ?? $this->tenant();
return json_decode($this->redis->hget("tenants:{$tenant->id}", $key), true);
}
public function getMany(array $keys, Tenant $tenant = null): array
{
$tenant = $tenant ?? $this->tenant();
return $this->redis->hmget("tenants:{$tenant->id}", $keys);
}