title: What happens if two simultaneous set to redis?
body: <p>For example, assuming the network is slow</p>
  
  <p>00:00:00</p>
  
  <p>client 1: set key1  a-very-big-value-around-400MB</p>
  
  <p>client 2: set key1 short-value (Does this get blocked as client 1 is setting key1?)</p>
  
  <p>If not block:</p>
  
  <p>00:00:01</p>
  
  <p>client 1: still writing to key1</p>
  
  <p>client 2: successfully returned</p>
  
  <p>00:00:02</p>
  
  <p>client 1: still writing to key1</p>
  
  <p>client 2: get key1 (return short-value?)</p>
  
  <p>00:01:00</p>
  
  <p>client 1: finished writing</p>
  
  <p>client 2: get key1 (return short-value or a-very-big-value-around-400MB or something corrupted
   ?)</p>
  
  <p>If a-very-big-value-around-400MB is returned, does this mean that redis first writes the value to some temp key then rename the key to key1??</p>