I am really struggling here. I have memcached installed as a background service. What I am trying to do is put a binary serialised object into memcache. Then retrieve it from memcached and then deserialise it. Does anyone have any idea on the best approach for this.
I can do this with a string. Just not a serialised object. Have had a good search. Here is an example of the C# Console Application I am trying to build it in.
using (MemcachedClient writeClient = new MemcachedClient())
string myVal = "hello world";
using (var ms = new MemoryStream())
BinaryFormatter my = new BinaryFormatter();
writeClient.Store(StoreMode.Set, "obj1", my);
my = writeClient.Get<BinaryFormatter>("obj1");
The .api I am using is ...
Thank you for any help.