Esempio n. 1
0
        /// <summary>
        /// 获取指定缓存变量(可为null)
        /// </summary>
        /// <param name="key">缓存变量名</param>
        /// <returns>指定缓存变量(可为null)</returns>
        public static List <KeyValuePair <String, String> > GetDetail(String key)
        {
            if (String.IsNullOrEmpty(key))
            {
                return(null);
            }

            Object obj = CacheManager.GetObject(key);

            if (obj == null)
            {
                return(null);
            }

            List <KeyValuePair <String, String> > list = new List <KeyValuePair <String, String> >();

            CacheManager.AddObjectDetail(obj, list, "");

            return(list);
        }