I\'m getting \"OOM command not allowed\" when trying to set a key, maxmemory is set to 500M with maxmemory-policy \"volatile-lru\", I\'m setting T
maxmemory
maxmemory-policy
For such a problem, consider increasing your maxmemory in redis.conf file. It helped me.
like maxmemory was 21000000 for me then I changed it to 31000000. Hope it helps.