也來說說破解ServiceStack.Redis的限制
阿新 • • 發佈:2019-02-03
在搜尋這個問題的解決辦法時,一般會搜到這個文章
嗯,改dll檔案......不過......要是有原始碼那不是更好嗎?嗯,那麼原始碼來了......
前人栽樹後人乘涼,通過前人的分析,限制主要集中在一個類裡面,通過 LicenseUtils.cs 檔案裡找到
public static class FreeQuotas { public const int ServiceStackOperations = 10; public const int TypeFields = 20; public const int RedisTypes = 20; public const int RedisRequestPerHour = 2147483647; public const int OrmLiteTables = 10; public const int AwsTables = 10; public const int PremiumFeature = 0; }
特別是 RedistRequestPerHour ,免費版本是 6000,上面我給改成了 2147483647,也就是int的最大值,其他限制可以接著改其他欄位,不過最主要是 RedistRequestPerHour 這個欄位
編譯一把,生成新的 ServiceStack.Text.dll 完事......