RedisStorageDriver
class RedisStorageDriver implements StorageDriver, CanDeleteKeys (View source)
Properties
protected Application | $app | ||
protected Factory | $redis | ||
protected Tenant | $tenant |
Methods
No description
Set default tenant (will be used for get/put when no tenant is supplied).
Find a tenant using a domain name.
No description
Return a list of all tenants.
Make a Tenant instance from low-level array data.
Details
__construct(Application $app, Factory $redis)
No description
protected Tenant
tenant()
Get the current tenant.
StorageDriver
withDefaultTenant(Tenant $tenant)
Set default tenant (will be used for get/put when no tenant is supplied).
void
ensureTenantCanBeCreated(Tenant $tenant)
Ensure a tenant can be created.
Tenant
findByDomain(string $domain)
Find a tenant using a domain name.
Tenant
findById(string $id)
Find a tenant using an id.
string|null
getTenantIdByDomain(string $domain)
No description
void
createTenant(Tenant $tenant)
No description
void
updateTenant(Tenant $tenant)
No description
void
deleteTenant(Tenant $tenant)
No description
array
all(array $ids = [])
Return a list of all tenants.
protected Tenant
makeTenant(array $data)
Make a Tenant instance from low-level array data.
mixed
get(string $key, Tenant $tenant = null)
Get a value from storage.
void
getMany(array $keys, Tenant $tenant = null)
Get multiple values from storage.
void
put(string $key, mixed $value, Tenant $tenant = null)
Put a value into storage.
void
putMany(array $kvPairs, Tenant $tenant = null)
Put multiple values into storage.
void
deleteMany(array $keys, Tenant $tenant = null)
Delete keys from the storage.