FreeRedis
FreeRedis copied to clipboard
操作MSet批量时,过期时间?
操作MSet批量时,过期时间可以设置么?该怎么操作呢?
操作MSet批量时,过期时间可以设置么?该怎么操作呢?
看下这个
用 StartPipe 这个也是批量操作。
using (var pipe = cli.StartPipe())
{
pipe.Set(key1, value1, 10);
pipe.Set(key2, value2, 11);
//...
pipe.EndPipe();
}
看下这个