java - Multiple theads access Memcache -


what happen if multiple thread access same object stored in memcached ??

i have object objstore stored in memcached.

each thread retrieve objstore memcached , change , again store memcached.

at same time in module if want fetch same object objstore memcached, return empty object.

i using memcache 1.4 version.

memcached hold last version of object. if get, modify , put have no guarantee put applies same value get. use cas operations (gets, cas) if need synchronize.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -