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

Access to stats? #45

Open
ianrose14 opened this issue Nov 21, 2017 · 4 comments
Open

Access to stats? #45

ianrose14 opened this issue Nov 21, 2017 · 4 comments

Comments

@ianrose14
Copy link

I see there is a stats.go file with a (private) statsAccessor interface, but I don't see any way to access these stats in the API? Is this just incomplete work?

@bluele
Copy link
Owner

bluele commented Nov 26, 2017

@ianrose14
Implementation is already completed.
You can access those apis via statsAccessor's interface.
Example is here: https://github.com/bluele/gcache/blob/master/stats_test.go#L138

@ianrose14
Copy link
Author

ah, I see! Any interest in making statsAccessor public? Without that, it is pretty impossible to figure out from the godocs that those methods are available.

@bluele
Copy link
Owner

bluele commented Nov 26, 2017

That's right.
And currently statsAcessor interface is unnecessary, so I'd like to migrate this interface to the Cache interface.

@eaglerayp
Copy link

any update about this issue?

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

3 participants