updateCacheBySingleKey<T> method
void
updateCacheBySingleKey<T>(})
Single key update
Implementation
void updateCacheBySingleKey<T>(
String key,
T value, {
List<String>? tags,
bool emitEvent = true,
}) {
_cacheStorage.addToCache<T>(key, value, tags: tags);
if (emitEvent) {
_mutationController.add(
CacheMutationEvent(mutatedKeys: [key], mutatedData: {key: value}),
);
}
}