Exemple #1
0
        public void TakeOrLoadCache()
        {
            long userId = 1002;
            var  count  = PersonalCacheStruct.TakeOrLoad <UserFriend>(userId.ToString()).Count();

            Trace.WriteLine("UserFriend count:" + count);

            PersonalCacheStruct.TakeOrLoad <UserFriend>(userId.ToString());

            count = ShareCacheStruct.TakeOrLoad <FieldTypeData>().Count();
            Trace.WriteLine("FieldTypeData count:" + count);
            ShareCacheStruct.TakeOrLoad <FieldTypeData>();
        }