class CacheTagsBootstrapper implements TenancyBootstrapper (View source)

todo name.

Separate tenant cache using tagging. This is the legacy approach. Some things, like dependency injection, won't work properly with this bootstrapper. PrefixCacheTenancyBootstrapper is the recommended bootstrapper for cache separation.

Properties

protected CacheManager|null $originalCache
static string $cacheManagerWithTags

Methods

__construct(Application $app)

No description

void
bootstrap(Tenant $tenant)

No description

void
revert()

No description

void
resetFacadeCache()

This wouldn't be necessary, but is needed when a call to the facade has been made prior to bootstrapping tenancy. The facade has its own cache, separate from the container.

Details

__construct(Application $app)

No description

Parameters

Application $app

void bootstrap(Tenant $tenant)

No description

Parameters

Tenant $tenant

Return Value

void

void revert()

No description

Return Value

void

void resetFacadeCache()

This wouldn't be necessary, but is needed when a call to the facade has been made prior to bootstrapping tenancy. The facade has its own cache, separate from the container.

Return Value

void