mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 15:54:03 +00:00
Merge branch '1.x' of github.com:stancl/tenancy into 1.x
This commit is contained in:
commit
8cfbdcf8d1
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ class RedisStorageDriver implements StorageDriver
|
|||
// Prefix is applied to all functions except scan().
|
||||
// This code applies the correct prefix manually.
|
||||
$redis_prefix = config('database.redis.options.prefix');
|
||||
|
||||
|
||||
if (config('database.redis.client') === 'phpredis') {
|
||||
$redis_prefix = $this->redis->getOption($this->redis->client()::OPT_PREFIX) ?? $redis_prefix;
|
||||
$all_keys = $this->redis->scan(null, $redis_prefix . 'tenants:*');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue