'Redis keep throwing Out Of Memory (OOM) Error

I am using node js to store my data in Redis. I amusing HashSet to store Redis data and using HSETNX command. but when I am sending a continuous request to the Redis server I am getting the following error:

{ ReplyError: OOM command not allowed when used memory > 'maxmemory'.
   at parseError (/opt/built-flow/built-api-express/node_modules/redis-parser/lib/parser.js:193:12)
   at parseType (/opt/built-flow/built-api-express/node_modules/redis-parser/lib/parser.js:303:14)
 command: 'HSETNX'

any idea what this error means? and How I resolved this?



Solution 1:[1]

It means that you trying to save more data in terms of memory than Redis is can handle. Take a look here Out of memory issues

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 SuperManEver