Learn and Be Curious

Redis

table 개념X


Redis

- lpush -> rpop : queue

- in-memory cache 로 많이 씀

ex) 

lpush gdhong:test "a" "b" "c" "d"


s1:6379> brpop gdhong:test 0

1) "gdhong:test"

2) "a"

(4.09s)

s1:6379> brpop gdhong:test 0

1) "gdhong:test"

2) "b"