1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 09:54:03 +00:00

Mention global cache & storage in readme

This commit is contained in:
Samuel Štancl 2019-07-30 22:21:09 +02:00
parent 4d9c994c6c
commit 3eb6c8cc29

View file

@ -392,8 +392,9 @@ Connections listed in the `tenancy.redis.prefixed_connections` config array use
## Cache ## Cache
Both `cache()` and `Cache` will use `Stancl\Tenancy\CacheManager`, which adds a tag (`prefix_base` + tenant UUID) to all methods called on it. Both the `cache()` helper and the `Cache` facade will use `Stancl\Tenancy\CacheManager`, which adds a tag (`prefix_base` + tenant UUID) to all methods called on it.
If you need to store something in global, non-tenant cache, you can use the `GlobalCache` facade the same way you'd use the `Cache` facade.
## Filesystem/Storage ## Filesystem/Storage
@ -475,6 +476,8 @@ Storage::disk('public')->put($filename, $data);
Storage::disk('local')->put("public/$filename", $data); Storage::disk('local')->put("public/$filename", $data);
``` ```
If you want to store something globally, simply create a new disk and *don't* add it to the `tenancy.filesystem.disks` config.
## Artisan commands ## Artisan commands
``` ```