Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I determine why Enyim memcache is returning false when storing an item?

How can I determine WHY Enyim returned false from the following call:

cache.Store(Enyim.Caching.Memcached.StoreMode.Set, key, value);

Other items are getting stored fine, so it doesn't seem to be an issue with a connection to the server. The object does not appear to be greater than 1 MB.

So how can I determine what is causing the false?

like image 975
Dugan Avatar asked Oct 26 '11 19:10

Dugan


1 Answers

One other thing to check is that the whole object graph you're storing is [Serializable]. If it isn't then Enyim will throw a serialization exception, which will tell you which type needs to be marked as serializable. Follow the instructions at https://github.com/enyim/EnyimMemcached/wiki/Configure-Logging to enable logging.

like image 91
elRobbo Avatar answered Oct 06 '22 08:10

elRobbo