Lio.Huang
Lio.Huang
比如:StackExchange.Redis的 SortedSetLengthByValue、SortedSetRemoveRangeByValue
How do I migrate or initialize the database for the first time? Is there any guidance document?
很棒
### Bogus NuGet Package 35.5.1 ### .NET Version .Net6 ### Visual Studio Version 17.8 ### What operating system are you using? Windows ### What locale are you using with Bogus?...
https://github.com/bchavez/Bogus/blob/91dc65826175a4d05fe8fda6f29de0578e7350db/Source/Bogus/DataSets/Name.cs#L89 In Chinese full names, the surname comes first, followed by the given name, which is the opposite of English names. For example, the Chinese name 周杰伦 would be written...
集群模式切换异常
部署了3主3从集群,如下测试代码: FreeRedis版本:1.3.7 ``` static void FreeRedis() { Console.WriteLine("FreeRedis"); RedisClient cli = new RedisClient( new ConnectionStringBuilder[] { "127.0.0.1:6381", "127.0.0.1:6382", "127.0.0.1:6383", "127.0.0.1:6384", "127.0.0.1:6385", "127.0.0.1:6386", }); cli.Serialize = obj => JsonConvert.SerializeObject(obj); cli.Deserialize =...
公网部署经验分享
### 前言 我也是一步一步摸索和群里的大佬们请教,才把这个项目搭建并可以外网正常访问,现在就分享一下我的经验吧。首先是方案,我们公司自有机房,所以我的数字人部署在本地,经过安全的考虑,搭建Coturn服务器放在阿里云服务器上,将本地的数字人和Coturn服务器的端口映射(白名单),这样就可以让外网用户访问内网资源了,且端口得到有效的保护。 ### 环境准备 - 阿里云服务器: 外网IP:1.2.3.4 内网IP:192.168.1.100 - 自有机房: 外网:113.1.1.2 - 数字人服务器 内网IP:172.16.10.30 ### step1: 安装Coturn服务器 Coturn服务器的安装比较简单,我是使用docker安装的。 第一步创建turnserver.conf,内容如下: ``` listening-ip=192.168.1.100 listening-port=3478 #tls-listening-port=5349 relay-ip=192.168.1.100 external-ip=1.2.3.4 realm=1.2.3.4 allowed-peer-ip=0.0.0.0 relay-threads=10 lt-cred-mech...