Use pipeline with multi-exec to set multiple keys at once #51
Labels
Enhancement
hacktoberfest-accepted
Issues/Pull-Requests which can be fixed during Hacktoberfest: https://hacktoberfest.digitalocean.com
Help Wanted
Feature Request
Summary
As of now,
RedisCluster
usessetex
for every item and therefore does not persist all the keys at once. This might be inefficient when it comes to a huge amount of keys.I am following redis/redis#5867 for quite a while and there was some frequent update:
redis/redis#5867 (comment)
So the user @oranagra states that using a pipeline along with multi-exec might be as performant as using
MSETEX
.This issue is meant to be an idea of how to further optimize
StorageInterface#setItems
for redis cluster.The text was updated successfully, but these errors were encountered: