TenantCachePartitioner class

Ensures tenant cache isolation, preventing cross-tenant data leaks.

Constructors

TenantCachePartitioner(MetaMantleCacheStore cacheStore)
const

Properties

cacheStore → MetaMantleCacheStore
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildKey({required String tenantId, required String host, required String path, String locale = 'en', String currency = 'USD', Map<String, String> queryParameters = const {}}) → String
Builds a fully isolated cache key partitioned by tenant, host, locale, and currency.
invalidateTenant(String tenantId) → Future<void>
Invalidates all cached pages belonging to a specific tenant.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tenantTags(String tenantId, [List<String> additionalTags = const []]) → Set<String>
Generates tenant-specific cache tags to attach to CacheEntry.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited