I want to do an atomic "test and set if doesn't exist" on a cache key using the django API. So far, that's easy.; cache.add() gives me exactly that.
But, if the key does exist, I also want to get the current value. All add() gives me back is a flag saying if the key existed. Is there a way to also get the value, inside the atomic perimeter?
--
Roy Smith
r...@panix.com