Redis Performance – Does key length matter?
I’m currently building a project using as a high performance cache in a node.js application (using the excellent ). My key values will be fairly large ( between 512b and 1kb). The Redis documentation doesn’t specifically warn against keys of this size, but it still seems appropriate to do a benchmark, and see how Redis reacts to large keys (and whether or not 1k is really a key, or just par for the course). () Basically, we insert 1000 records into redis, each with a 10,000 character value. After the writes are all complete, we read each key back from redis. This test was performed for key lengths of 10, 100, 500, 1000, 2500, 5000, 7500, 10,000, and 20,000 characters. Three runs of each were performed to avoid any fluke results. Without further ado, the results.