/// <summary> /// Returns the possible priorities from cache. If the cache has not been set /// this method will load the values using the specified JiraClient. /// </summary> /// <param name="client">used to load priories if not already in cache</param> /// <param name="context">Context that contains the cache</param> /// <returns>cached priority values</returns> public static List <Priority> GetCachedPriorities(this JiraClient client, HttpContextBase context) { return(GetFromCache <List <Priority> >( KEY_PRIORITY_FILTER, () => client.GetPriorities(), PRIORITY_FILTER_EXPIRATION_HOURS, context)); }