1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 17:44:04 +00:00
This commit is contained in:
Samuel Štancl 2019-09-11 17:34:36 +02:00
commit 088501a939

View file

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