2 ms·
Sure there is, check 'maxmemory' directive. Especially in 2.2 it was extended a lot. You can configure it to simply trow error on writes once the limit is reach
by antirez 16y ago
Sure there is, check 'maxmemory' directive. Especially in 2.2 it was extended a lot. You can configure it to simply trow error on writes once the limit is reached.
- otterley 16y agoMy point is that Redis doesn't automatically size maxmemory itself. Novice users can trivially make Redis perform awfully if their working set exceeds available RAM. (I don't consider this a flaw in Redis, BTW - it's just that a lot of implementors really don't understand operating systems and VM overcommit.)