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
Post a Comment