usually we don't need to call setCacheSliceBytes

This commit is contained in:
lionsoul2014 2025-12-29 19:42:00 +08:00
parent 351be412e6
commit 0d152d91a5
1 changed files with 0 additions and 2 deletions

View File

@ -22,7 +22,6 @@ final Config v4Config = Config.custom()
.setCachePolicy(Config.VIndexCache) // 指定缓存策略: NoCache / VIndexCache / BufferCache .setCachePolicy(Config.VIndexCache) // 指定缓存策略: NoCache / VIndexCache / BufferCache
.setSearchers(15) // 设置初始化的查询器数量 .setSearchers(15) // 设置初始化的查询器数量
// .setXdbInputStream(InputStream) // 设置 v4 xdb 文件的 inputstream 对象 // .setXdbInputStream(InputStream) // 设置 v4 xdb 文件的 inputstream 对象
// .setCacheSliceBytes(int) // 设置 v4 xdb 缓存的分片字节数
// .setXdbFile(File) // 设置 v4 xdb File 对象 // .setXdbFile(File) // 设置 v4 xdb File 对象
.setXdbPath("ip2region v4 xdb path") // 设置 v4 xdb 文件的路径 .setXdbPath("ip2region v4 xdb path") // 设置 v4 xdb 文件的路径
.asV4(); // 指定为 v4 配置 .asV4(); // 指定为 v4 配置
@ -32,7 +31,6 @@ final Config v6Config = Config.custom()
.setCachePolicy(Config.VIndexCache) // 指定缓存策略: NoCache / VIndexCache / BufferCache .setCachePolicy(Config.VIndexCache) // 指定缓存策略: NoCache / VIndexCache / BufferCache
.setSearchers(15) // 设置初始化的查询器数量 .setSearchers(15) // 设置初始化的查询器数量
// .setXdbInputStream(InputStream) // 设置 v6 xdb 文件的 inputstream 对象 // .setXdbInputStream(InputStream) // 设置 v6 xdb 文件的 inputstream 对象
// .setCacheSliceBytes(int) // 设置 v6 xdb 缓存的分片字节数
// .setXdbFile(File) // 设置 v6 xdb File 对象 // .setXdbFile(File) // 设置 v6 xdb File 对象
.setXdbPath("ip2region v6 xdb path") // 设置 v6 xdb 文件的路径 .setXdbPath("ip2region v6 xdb path") // 设置 v6 xdb 文件的路径
.asV6(); // 指定为 v6 配置 .asV6(); // 指定为 v6 配置