在redis目录中,找到redis.conf
找到# maxmemory<bytes>,后面加上
maxmemory 16gb,就可以修改缓存大小为16gb
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3