Is there a way to store multiple keys with ttl

Is there a way to store multiple keys with ttl especially for redisClient.StoreAll?

When in doubt check the available Redis Commands for the command you want to call. There is no EXPIRE or SET command which lets you set an expiry for multiple keys. You’d need to compose multiple commands in a transaction.

Ok thanks I try it with:

using (var trans = redis.CreateTransaction())
{
...
}