RGeoIP:基于Redis的IP范围查找

时间:2021-07-12 22:14:28
【文件属性】:
文件名称:RGeoIP:基于Redis的IP范围查找
文件大小:1.99MB
文件格式:ZIP
更新时间:2021-07-12 22:14:28
C# 地理IP 将 Redis 中的 IP 范围存储为已排序的集合以进行快速查找 安装 您可以在下载 nuget 包或从命令行简单地安装。 Install-Package RGeoIP 用法 导入旧 csv 文件 var conn = ConnectionMultiplexer . Connect ( " localhost:6379, allowadmin=true " ); var geoIP = new GeoIP (() => conn . GetDatabase ()); using ( var reader = new StreamReader (" GeoIPCountryWhois . csv ")) { var count = await geoIP . ImportGeoLiteLegacyAsync ( reader ); } 用几毫秒来查找的国家/地区的 I
【文件预览】:
RGeoIP-master
----.gitignore(83B)
----create_nuget_package.ps1(3KB)
----LICENSE(1KB)
----README.md(1KB)
----RGeoIP.Tests()
--------packages.config(282B)
--------GeoIPCountryWhois-small.csv(4KB)
--------GeoIPTests.cs(2KB)
--------RGeoIP.Tests.csproj(4KB)
--------Properties()
----RGeoIP.sln(2KB)
----RGeoIP.nuspec(830B)
----.nuget()
--------NuGet.exe(1.59MB)
--------NuGet.Config(164B)
--------NuGet.targets(7KB)
----icon.png(996B)
----Benchmark()
--------Program.cs(598B)
--------Runner.cs(1KB)
--------packages.config(216B)
--------GeoIPCountryWhois.csv(7.43MB)
--------App.config(184B)
--------Benchmark.csproj(4KB)
--------Properties()
----RGeoIP()
--------packages.config(216B)
--------IPCountry.cs(337B)
--------RGeoIP.csproj(3KB)
--------GeoIP.cs(3KB)
--------GeoLiteLegacyMap.cs(445B)
--------IPAddressExtensions.cs(317B)
--------Properties()

网友评论