redis: achieve same effect as memcached