public List <as_hotkeys> GetHotKeys() { var res = new List <as_hotkeys>(); var key = "as_hotkeys"; if (CacheManager.EnableCaching && CacheManager.Cache[key] != null) { res = (List <as_hotkeys>)CacheManager.Cache[key]; } else { try { res = db.GetHotKeys(); CacheManager.CacheData(key, res); } catch (Exception ex) { Debug.LogError(ex); } } return(res); }