{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"closed","user":{"avatar_url":"https://secure.gravatar.com/avatar/e320ae80cce2887d146345507449ab66?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e320ae80cce2887d146345507449ab66","url":"https://api.github.com/users/lordfist","login":"lordfist","id":1159020},"milestone":null,"labels":[{"name":"wontfix","color":"d1d1d1","url":"https://api.github.com/repos/enyim/EnyimMemcached/labels/wontfix"}],"assignee":null,"updated_at":"2011-10-29T02:55:00Z","comments":7,"closed_at":"2011-10-29T02:29:42Z","url":"https://api.github.com/repos/enyim/EnyimMemcached/issues/86","body":"Here is the problem:\r\n\r\nLets imagine 2 scenarios, in one I start with:\r\n\r\nulong val = Global.ClientPool.Client.Increment(\"testInt\", 0, 1);\r\n\r\nand call this ++ times afterwards. Now this works as expected and returns me correct values.\r\n\r\nBUT\r\n\r\nIf I call this first:\r\n\r\nGlobal.ClientPool.Client.Store(Enyim.Caching.Memcached.StoreMode.Set, \"testInt\", (ulong)0);\r\n\r\nand then call\r\n\r\nulong val = Global.ClientPool.Client.Increment(\"testInt\", 0, 1);\r\n\r\n++ times it ALWAYS returns 0 as value.\r\n\r\nThis is clearly a bug and needs fixing asap or very big red letters that you cannot combine Store method with Increment/Decrement methods!!!\r\n\r\nThis also means that I cannot \"RESET\" the counter to 0 but need to Remove and then use Increment again...\r\n\r\nAlso note ANY CALLING on Store method afterwards does the same...\r\n\r\nAlso note that afterwards when trying to use typed Get<T> (even if T is ulong) on that key (or normal Get) fails inside the Memcached client with type conversion error on line 119 in MemCachedClient.cs\r\n\r\nThis is serious issue please fix!!!","html_url":"https://github.com/enyim/EnyimMemcached/issues/86","number":86,"title":"Increment/Decrement not working as expected","id":2085495,"created_at":"2011-10-29T02:19:18Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/2223000b5e2d38ec422d01dfac74c451?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"2223000b5e2d38ec422d01dfac74c451","url":"https://api.github.com/users/enyim","login":"enyim","id":78400},"updated_at":"2011-10-29T02:55:00Z","url":"https://api.github.com/repos/enyim/EnyimMemcached/issues/comments/2563229","body":"how would the client knew that you trying to retrieve a counter? only you know about your counters so you have to do the conversion.","id":2563229,"created_at":"2011-10-29T02:55:00Z"}}