setOptimistic<T> method
dynamic
setOptimistic<T>(
- dynamic key,
- T data
Replaces the data in cache with specified data
Calling this method will trigger the rebuild but the query won't be called again
Alternative approach would be to use invalidate queries. Look at the invalidateQueries for more details
Implementation
setOptimistic<T>(dynamic key, T data) =>
internalCache.setOptimistic(key, data);