Loading ...

Enyim Memcache: Not storing values | CodeAsp.Net

Enyim Memcache: Not storing values

 /5
0 (0votes)

While using the Enyim memcache I noticed my values were not getting stored in cache. I was using the following code:

            var mcc = new MemcachedClientConfiguration();
            mcc.AddServer("127.0.0.1:11211");
            this._client = new MemcachedClient(mcc);


After struggling few hours I came to know I have to add onr more line to set my memcache 

            var mcc = new MemcachedClientConfiguration();
            mcc.AddServer("127.0.0.1:11211");
            mcc.Protocol = MemcachedProtocol.Text;
            this._client = new MemcachedClient(mcc);


i.e after adding the protocol I was able to reolve my issue.

Comments (no comments yet)

Top Posts