青春年华

解决redis的list表里只能添加6000数据的问题。

电脑版发表于:2020/10/17 13:47
      /// 取消限制redis添加量
        /// </summary>
        public static void cancelimit()
        {
            var licenseKey = new LicenseKey()
            {
                Ref = "pedoc",
                Expiry = DateTime.Now.AddDays(365 * 5),
                Hash = string.Empty,
                Name = "pedoc",
                Type = LicenseType.Enterprise
            };
            var field = typeof(LicenseUtils).GetField("__activatedLicense",
            BindingFlags.Static | BindingFlags.NonPublic);
            var keyType = field.FieldType;
            var constructorInfos = keyType.GetConstructors(BindingFlags.Instance | BindingFlags.NonPublic);
            var constructorInfo = constructorInfos[0];
            var key = constructorInfo.Invoke(new object[] { licenseKey });
            field.SetValue(null, key);
            var licenceAll = LicenseUtils.HasLicensedFeature(LicenseFeature.All);
            Debug.Assert(licenceAll);
        }


关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢