Пример #1
0
        public static void InitCache()
        {
            string t = "Users";

            ServerState.Instance.CurrentSetupStatus = string.Format(JMMServer.Properties.Resources.Database_Cache, t, string.Empty);
            JMMUserRepository repo = new JMMUserRepository();

            Cache = new PocoCache <int, JMMUser>(repo.InternalGetAll(), a => a.JMMUserID);
        }