mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 08:44:02 +00:00
Mention global cache & storage in readme
This commit is contained in:
parent
4d9c994c6c
commit
3eb6c8cc29
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue