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

Getting memcached server status #83

Open
Zynke opened this issue Dec 17, 2018 · 0 comments
Open

Getting memcached server status #83

Zynke opened this issue Dec 17, 2018 · 0 comments

Comments

@Zynke
Copy link

Zynke commented Dec 17, 2018

Hi!

I am trying to get the server status from the memcache client using its method Stats().

ServerStats status = MemCachedClient.Stats();

To get the server status info you need to use the next method:

GetRaw(IPEndPoint server, string key)

So I created an IPEndPoint object and used it as a parameter:

var uptime = status .GetRaw(new IPEndPoint(IPAddress.Parse("XXX.XXX.XX.XX"), 11211), "uptime");

The problem is that the IPEndPoint that I instanciated and passed as a parameter and the IPEndPoint that is inside the ServerStats class have different AddressFamily.

new IPEndPoint() -> AddressFamily = InterNetwork
IPEndPoint inside the ServerStats -> AddressFamily = Unspecified

So when I do GetRaw(), it does not find the IPEndPoint because the AddresFamily is different.

Is there any way to get the server status info?

Thanks!

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