コード例 #1
0
 public static bool Persist(IComplexItem item)
 {
     return(item.Provider.ReadInt(item.Provider.SendCommand(RedisCommand.EXPIRE, item.KeyName)) == 1);
 }
コード例 #2
0
 public static int TTL(IComplexItem item)
 {
     return(item.Provider.ReadInt(item.Provider.SendCommand(RedisCommand.TTL, item.KeyName)));
 }
コード例 #3
0
 public static bool Expire(IComplexItem item, int seconds)
 {
     return(item.Provider.ReadInt(item.Provider.SendCommand(RedisCommand.EXPIRE, item.KeyName, seconds.ToString())) == 1);
 }