CacheInvalidator class

Constructors

CacheInvalidator.new(CacheStorage _cacheStorage)

Properties

hashCode int
The hash code for this object.
no setterinherited
invalidationStream Stream<CacheInvalidationEvent>
Stream of cache invalidation events
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Dispose resources
invalidateByPattern(String pattern) → void
Invalidate cache by pattern (e.g., "user_", "bookings_")
invalidateByTags(List<String> tags) → void
Invalidate cache by tags (e.g., "user", "profile")
invalidateKeys(List<String> keys) → void
Invalidate specific cache keys The full key has to be provided to invalidate the instance. So if the user, for example, has been provided with the parameter of id - we need to provide the user_{id.hasCode} to invalidate it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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