1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 22:14:03 +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

@ -88,7 +88,7 @@ class RedisStorageDriver implements StorageDriver
foreach ($tenant->domains as $domain) {
$pipe->del("domains:$domain");
}
$pipe->del("tenants:{$tenant->id}");
});
}
@ -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);
}