You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm pretty new to Go and very new to Memcached, which is probably a bad combination for using gomemcache, but I couldn't find any info regarding my problem in the docs.
I start Memcached with Docker like this: docker run -it --rm -p 11211:11211 memcached
waitGroup.Done() is commented out because that leads to more output (?). It's just for reproducing the behavior, so it doesn't matter that the program doesn't finish this way.
So the first Set() and Get() call work, which indicate that I properly created the client and that the server is running fine. But as soon as the calls take place concurrently in multiple goroutines, I get errors.
The server is still working fine. When I restart the program, the first Set() and Get() still work.
The text was updated successfully, but these errors were encountered:
I'm pretty new to Go and very new to Memcached, which is probably a bad combination for using
gomemcache
, but I couldn't find any info regarding my problem in the docs.I start Memcached with Docker like this:
docker run -it --rm -p 11211:11211 memcached
Then I run this code:
waitGroup.Done()
is commented out because that leads to more output (?). It's just for reproducing the behavior, so it doesn't matter that the program doesn't finish this way.This is what I get:
So the first
Set()
andGet()
call work, which indicate that I properly created the client and that the server is running fine. But as soon as the calls take place concurrently in multiple goroutines, I get errors.The server is still working fine. When I restart the program, the first
Set()
andGet()
still work.The text was updated successfully, but these errors were encountered: