tags:

views:

183

answers:

2

We are using memcached 1.2.4 via enyim and are finding it difficult to get some objects to cache. If I watch the memcache console it just says 'NOT_STORED'.

I think we need to use [serializable] but that doesnt always work. I cant find any documentation or relevant google hits.

Any one here got any clues?

Thanks

+2  A: 

Strongly recommend upgraded your version of memcached.

NOT_STORED means just that, your data was not stored. If you are using the add command to store data, this means that there's already data under that key. If you are using replace it means that there's not data under that key. You probably mea set.

Dustin
A: 

Thanks and sorry for the late reply.

The problem was two-fold. Using [Serializable] was not adequate for some objects so we have to implement ISerializable. We were also using ADD rather than SET.

From memory I couldn't find an upgrade for memcached and once we fixed the above it worked.

Cheers

Jonesie