Skip to content
This repository has been archived by the owner on Sep 23, 2018. It is now read-only.

Get data from NodeCache? #6

Closed
bpodgursky opened this issue Apr 30, 2017 · 4 comments
Closed

Get data from NodeCache? #6

bpodgursky opened this issue Apr 30, 2017 · 4 comments

Comments

@bpodgursky
Copy link

Hi, let me know if there's a better place for this question (I didn't see a mailing list)

I'm looking into using the NodeCache recipe, but I'm having trouble figuring out how to actually get the data out of the node. The Java Curator NodeCache has a getCurrentData() method, and I'm trying to figure out what the equivalent is here.

I understand the recipes here are only somewhat finished, so I'm happy to add a a getter if necessary. Just want to make sure I'm not missing something obvious.

@basvanbeek
Copy link
Contributor

@tevino can you chime in?

@bpodgursky
Copy link
Author

To update, I've switched to a TreeCache for now and it's working fine for now, but I'm still curious if I was misunderstanding NodeCache.

@tevino
Copy link
Contributor

tevino commented May 3, 2017

The NodeCache was extracted from the old code without much touch.

@bpodgursky I guess it is not mean to be used separately, for the absence of data getter, you could add one if you want.

@bpodgursky
Copy link
Author

Thanks @tevino. I'm just using the TreeCache with depth=0 and data caching instead for now. Hopefully isn't much of a performance hit. If I run into issues I might take a look at exposing more methods on the NodeCache.

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

No branches or pull requests

3 participants