Interface ITenantsCache
- Namespace
- GroupeIsa.Neos.Shared.MultiTenant.Cache
- Assembly
- GroupeIsa.Neos.Shared.dll
Provides the functionalities of a tenants cache.
public interface ITenantsCache
Methods
AddOrUpdateAsync(string, string, string, NeosTenantInfo?)
Adds or update the tenant informations for the specified tenant id and the cluster name.
Task AddOrUpdateAsync(string identifier, string clusterName, string clusterVersion, NeosTenantInfo? tenantInfo)
Parameters
identifier
stringThe tenant identifier.
clusterName
stringThe cluster name.
clusterVersion
stringThe cluster version.
tenantInfo
NeosTenantInfoThe tenant informations.
Returns
RemoveAsync(string)
Removes a tenant.
Task RemoveAsync(string identifier)
Parameters
identifier
stringThe tenant identifier.
Returns
RemoveAsync(string, string, string)
Removes a tenant for the specified cluster.
Task RemoveAsync(string identifier, string clusterName, string clusterVersion)
Parameters
identifier
stringThe tenant identifier.
clusterName
stringThe cluster name.
clusterVersion
stringThe cluster version.
Returns
TryGetAsync(string, string, string)
Tries to get the tenant informations for the specified tenant id and the cluster name.
Task<(NeosTenantInfo? NeosTenantInfo, string Etag)> TryGetAsync(string identifier, string clusterName, string clusterVersion)
Parameters
identifier
stringThe tenant identifier.
clusterName
stringThe cluster name.
clusterVersion
stringThe cluster version.
Returns
- Task<(NeosTenantInfo NeosTenantInfo, string Etag)>
The tenant informations or
null
if the key is not cached.