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

how to set timeout #87

Open
liangsj opened this issue Oct 23, 2018 · 1 comment
Open

how to set timeout #87

liangsj opened this issue Oct 23, 2018 · 1 comment

Comments

@liangsj
Copy link

liangsj commented Oct 23, 2018

hi, I read code and find Timeout val int client struct , But I don't know how to set the Timeout .

@philippgille
Copy link

Doesn't the following work?

mc := memcache.New("localhost:11211")
mc.Timeout = 2 * time.Second

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

2 participants