1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 09:54: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:
Samuel Štancl 2019-07-03 14:48:55 +02:00 committed by GitHub
parent e7b5a77a6b
commit 1b6759084f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 75 additions and 18 deletions

View file

@ -22,7 +22,6 @@ You won't have to change a thing in your application's code.\*
### Requirements
- Laravel 5.7 or 5.8
- phpredis (predis is not supported)
### Installing the package
@ -99,6 +98,8 @@ config('tenancy.redis.prefix_base') . $uuid
These changes will only apply for connections listed in `prefixed_connections`.
> **Note: *If you want Redis to be multi-tenant, you <u>must</u> use phpredis. Predis does not support prefixes.***
#### `cache`
Cache keys will be tagged with a tag:
@ -328,7 +329,7 @@ The entire application will use a new database connection. The connection will b
Connections listed in the `tenancy.redis.prefixed_connections` config array use a prefix based on the `tenancy.redis.prefix_base` and the tenant UUID.
**Note: You *must* use phpredis. Predis doesn't support prefixes.**
**Note: You *must* use phpredis if you want mutli-tenant Redis. Predis doesn't support prefixes.**
## Cache