My company will set expire time all keys use Redis.

But have Some problem: 1. incr command will set value 0 and not set expire time if the key not exist. is a persistence key. 2. we will mset more key. and must to execute expire command many times. it will cost more time.

So we have to implementation the feature use lua.

I see has some issue talk about it too. i think implementation these commands not complicated. why to support these commands ?

6795

https://github.com/antirez/redis/issues/502 https://github.com/antirez/redis/issues/5867

Comment From: madolson

Seems like a couple of these could be extended onto the existing set command, and used with mulit-exec instead of lua.