mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:34:04 +00:00
Merge
This commit is contained in:
commit
088501a939
1 changed files with 2 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ class RedisStorageDriver implements StorageDriver
|
||||||
foreach ($tenant->domains as $domain) {
|
foreach ($tenant->domains as $domain) {
|
||||||
$pipe->del("domains:$domain");
|
$pipe->del("domains:$domain");
|
||||||
}
|
}
|
||||||
|
|
||||||
$pipe->del("tenants:{$tenant->id}");
|
$pipe->del("tenants:{$tenant->id}");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue