Esempio n. 1
0
 public static List <T> GetResultSets <T>(this StoredProcedureWithResultSet <T> storedProcedure, RedisClient redisClient
                                          , TimeSpan expiry, When when)
     where T : StoredProcedureResultSet, new()
 {
     return(storedProcedure.GetResultSets(redisClient, expiry, when, CommandFlags.None));
 }
Esempio n. 2
0
        public static TimeSpan?GetCacheLiveTime <T>(this StoredProcedureWithResultSet <T> storedProcedure, RedisClient redisClient)
            where T : StoredProcedureResultSet, new()
        {
            var sp = storedProcedure;

            return(redisClient.Database.KeyTimeToLive(sp.GetRedisKey()));
        }