[Redis] Hash ํ์
๋ ๋์ค์ Hash๋ ํด์๋งต, ๋์
๋๋ฆฌ๋ค. ์ฐ๋ฆฌ๊ฐ ์๋ ๊ทธ๊ฒ์ด ๋ง๋ค.
์ผ๋ฐ์ ์ผ๋ก ์์ฃผ ์ฐ์ด๋ ์ปฌ๋ ์
ํ์
์ด๋ค.
๋จ์ผ์์์ ์ฝ์ ์ hset๋ก ์ํํ ์ ์๋ค. ํค์ ๊ฐ ์์ ๋ฐ๋๋ค.

hlen์ ํด์์ ๊ธธ์ด๋ฅผ ๊ฐ์ ธ์ค๊ณ

hkeys์ kvals๋ ๊ฐ๊ฐ ํค ๋ชฉ๋ก๊ณผ ๊ฐ ๋ชฉ๋ก์ ๋ฟ๋ ค์ค๋ค.

hgetall์ ํค์ ๊ฐ์ ๊ฐ๋ฆฌ์ง ์๊ณ ๋ฌด์ํ๊ฒ ๋ฟ๋ ค์ค๋ค.

hdel์ ํค๊ฐ์ ๋ฐ์์ ํด๋น ์์๋ฅผ ์ญ์ ํ๋ค.

๊ทธ๋ ๋ค.
์ด์ธ์ ๋ช
๋ น๋ค์ ๊ณต์ ๋ฌธ์๋ฅผ ์ฐธ์กฐํ๊ธธ ๋ฐ๋๋ค.
https://redis.io/commands#hash
์ฐธ์กฐ
https://blog.seotory.com/post/2016/11/introduction-to-redis
https://redis.io/commands/hset