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)); }
public static TimeSpan?GetCacheLiveTime <T>(this StoredProcedureWithResultSet <T> storedProcedure, RedisClient redisClient) where T : StoredProcedureResultSet, new() { var sp = storedProcedure; return(redisClient.Database.KeyTimeToLive(sp.GetRedisKey())); }