xx

레디스를 이용하다보면 NX와 XX 명령어가 있다.  set a b 명령어를 입력한다고 할 때,  NX는 키가 존재하지 않을 때 set 하고, XX는 키가 존재할 때 set 한다. 근데 이게 무슨 줄임말인지 짧은 영어 지식으론 몰라서 찾아보니, NX는 Not eXist, XX는 그냥 eXist 인데 길이 맞추려고 한 것 같다.. 공식 문서에서도 무엇의 준말인지 안 알려주고 아래와 같이 나와있다.  NX -- Only set the key if it does not already exist.XX -- Only set the key if it already exists. https://redis.io/docs/latest/commands/set/ SETSets the string value of a key, ..
yunjae62
'xx' 태그의 글 목록