-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support eviction of specific entity fields.
Evicting an entire entity object is often overkill, when all you really want is to invalidate and refetch specific fields within the entity. This observation is especially true for the ROOT_QUERY object, which should never be evicted in its entirety, but whose individual fields often become stale or need to be recomputed. A critical nuance here is that fields are evicted according to their field.name.value, rather than a specific storeFieldName, since it doesn't make a whole lot of sense to evict the field value associated with a specific set of arguments. Instead, calling cache.evict(id, fieldName) will evict *all* values for that field, regardless of the arguments.
- Loading branch information
Showing
5 changed files
with
384 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.