Replies: 5 comments
-
I don't really get what they should do and why they are needed? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@BANOnotIT description addded |
Beta Was this translation helpful? Give feedback.
0 replies
-
Wouldn't it be better to have CacheAtom#invalidateParams instead of delete? |
Beta Was this translation helpful? Give feedback.
0 replies
-
It should be additional feature, yes. |
Beta Was this translation helpful? Give feedback.
0 replies
-
done b53fe98 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We need a way to set the cache manually. For example, we have an API which makes a
PUT
,POST
, or mutation call that returns new data which we can use without performing extra invalidation. The problem is thatcacheAtom
stores a complex data with some meta (CacheRecord
) by keys with a specific semantics. We need a user-friendly way to update the cache by passing just a key and a new data.WithParams
needed asMapAtom
already haveset
anddelete
methods.Beta Was this translation helpful? Give feedback.
All reactions