cnblogs / EnyimMemcachedCore

.NET Memcached client. Available on https://www.nuget.org/packages/EnyimMemcachedCore
Apache License 2.0
162 stars 45 forks source link

Add mcrouter support #178

Closed AlekseyRostov closed 1 year ago

AlekseyRostov commented 1 year ago

Hi, I am using mcrouter (v41) as a scalable memcache solution, however it doesn't seem to support gets command which this library uses by default even for fetching single key values.

I get this kind of error: memcache: unexpected line in get response: "SERVER_ERROR unexpected result mc_res_unknown (0) for get\r\n"

It is necessary to update GetOperation for the text protocol, replace gets with get. this will work equally for both mcrouter and memcached