-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The load() function may load data from the KVS cache or it may issue a rpc to retrieve data from the broker content cache. The load() function's dependency on both the cache and rpcs makes it difficult to splice functions such as lookup() and walk() into separate APIs. This patch removes the call of load() from the lookup() and walk() functions. In lookup() and walk(), data is only looked up in the KVS cache. If the data is not available, a reference to the missing data is propogated all the way backer to the original caller. It is then the original caller's responsibility to load the data from the content store. A new convenience function of load_from_cache() has been added for the purpose of reading data only from the KVS cache.
- Loading branch information
Showing
1 changed file
with
43 additions
and
12 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