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-08-04 18:04:35 +00:00 committed by StyleCI Bot
parent 0dc8c80a02
commit 8fd32a67a9

View file

@ -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:*');