Redis | memory limit reached OOM command not allowed when used memory> 'maxmemory'.

Today, when checking reptile run, I found the program stopped, found in the output

OOM command not allowed when used memory > 'maxmemory'.

Solution 1: increase memory limit

127.0.0.1:6379> CONFIG SET maxmemory 2gb

Solution 2: Set out of policy

127.0.0.1:6379>CONFIG SET maxmemory-policy volatile-lru

Guess you like

Origin blog.csdn.net/weixin_34270865/article/details/90974341