Working with Cas
I have a simple test app to test out membase and to see how to work with it
I want to keep a list of all my users' ids, so I've defined this in my page_load
casUsers = mc.Cas(Enyim.Caching.Memcached.StoreMode.Add, "AllUsers", string.Empty);
the way I understand it is that if the key doesn't exist , it will create it
and if it does it will give me it's latest Cas
and when I add a user through the gui:
casUsers = mc.Append("AllUsers", casUsers, new ArraySegment (Encoding.UTF8.GetBytes(sUsrIDToAppend)));
now.. this works , but it also works when instead of casUsers i pass the number 7 for example, or anything else..
what am I missing here?