Refactored update memcached key.