class PrefixCacheTenancyBootstrapper implements TenancyBootstrapper (View source)

Properties

protected string|null $originalPrefix
static array $tenantCacheStores
static Closure|null $prefixGenerator

Methods

__construct(Repository $config, CacheManager $cacheManager)

No description

void
bootstrap(Tenant $tenant)

No description

void
revert()

No description

void
setCachePrefix(string $driver, string|null $prefix)

No description

string
generatePrefix(Tenant $tenant)

No description

static void
generatePrefixUsing(Closure $prefixGenerator)

No description

void
refreshStore(string $driver)

Refresh cache driver's store.

Details

__construct(Repository $config, CacheManager $cacheManager)

No description

Parameters

Repository $config
CacheManager $cacheManager

void bootstrap(Tenant $tenant)

No description

Parameters

Tenant $tenant

Return Value

void

void revert()

No description

Return Value

void

protected void setCachePrefix(string $driver, string|null $prefix)

No description

Parameters

string $driver
string|null $prefix

Return Value

void

string generatePrefix(Tenant $tenant)

No description

Parameters

Tenant $tenant

Return Value

string

static void generatePrefixUsing(Closure $prefixGenerator)

No description

Parameters

Closure $prefixGenerator

Return Value

void

protected void refreshStore(string $driver)

Refresh cache driver's store.

Parameters

string $driver

Return Value

void