mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 08:44:03 +00:00
Add Predis support (#59)
* wip * Add Predis support * Enable phpredis extension only for some builds * Add note about phpredis * Fix if command * Revert travis changes & add a version check to predis tests
This commit is contained in:
parent
e7b5a77a6b
commit
1b6759084f
9 changed files with 75 additions and 18 deletions
8
src/Exceptions/PhpRedisNotInstalledException.php
Normal file
8
src/Exceptions/PhpRedisNotInstalledException.php
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace Stancl\Tenancy\Exceptions;
|
||||
|
||||
class PhpRedisNotInstalledException extends \Exception
|
||||
{
|
||||
protected $message = 'PhpRedis is not installed. PhpRedis is required for Redis multi-tenancy because Predis does not support prefixes.';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue