menu
daq package
documentation
utils/daq_cache/cache_parts/cache_invalidator.dart
CacheInvalidator class
CacheInvalidator class
dark_mode
light_mode
CacheInvalidator
class
Constructors
CacheInvalidator.new
(
CacheStorage
_cacheStorage
)
Properties
hashCode
→
int
The hash code for this object.
no setter
inherited
invalidationStream
→
Stream
<
CacheInvalidationEvent
>
Stream of cache invalidation events
no setter
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
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
daq package
documentation
utils/daq_cache/cache_parts/cache_invalidator
CacheInvalidator class
cache_invalidator library