Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature_request: option to use named keys for caching #10

Open
tkmmark opened this issue Nov 2, 2020 · 1 comment
Open

feature_request: option to use named keys for caching #10

tkmmark opened this issue Nov 2, 2020 · 1 comment

Comments

@tkmmark
Copy link
Contributor

tkmmark commented Nov 2, 2020

Consider allowing user to supplement their own named keys when caching object... in order to facilitate more intuitive retrieval of cached objects. This involves making the following changes:

(1) Create property in ServerProtocol class to store the map between datakey and id:_
image

(2) Inside the Proxy class..._
When a user supply a datakey, this is sent along with the data to the server
image

(3) Correspondingly, the ServerProtocol class stores any supplied datakey to the property / mapper described in (1)
image

(4) In the Get method of the ServerProtocol class, allow the datakey to be used for retrieving cached object... (If the key is not an ID, the method will search for stored keys)
image

@tkmmark
Copy link
Contributor Author

tkmmark commented Nov 2, 2020

And it would be nice to also to add a method to allow users to see what datakeys have already been added...
The required changes for the process() in the ServerProtocol is captured in the screenshot below:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant