php.bloom.filter:布隆过滤器

时间:2021-06-14 17:15:53
【文件属性】:
文件名称:php.bloom.filter:布隆过滤器
文件大小:410KB
文件格式:ZIP
更新时间:2021-06-14 17:15:53
PHP php.bloom.filter - 是检查对象存在并节省内存和磁盘使用的最佳方法。 用法 示例目录中提供了示例和基准测试。 基本参数: entry_max (int) 条目对象的最大数量。 默认值:100。 error_chance (float) (0;1) 错误检查存在的机会。 用于自动设置下 2 个参数。 默认值:0.001。 set_size (int) 设置对象的大小。 默认值:计算。 hash_count (int) 唯一哈希对象的计数。 默认值:计算。 counter (boolean) 仅在 ypu 也想删除元素时使用。 慢下来。 默认值:假。 hash (array) Hash 对象的参数。 strtolower (boolean) 是否将字符串设为小写。 默认值:真; 简单的代码示例: include 'bloom.class.php' ; $ p
【文件预览】:
php.bloom.filter-master
----bloom.class.php(10KB)
----benchmarks()
--------defaultVStaskaz.php(5KB)
--------benchmark.counter.php(6KB)
--------defaultVSdeceze.php(5KB)
--------other()
--------benchmark.default.php(5KB)
--------defaultVSgrossvogel.php(5KB)
----examples()
--------bloom.cache(2KB)
--------caching.php(1KB)
--------counter.php(1KB)
--------default.php(1KB)
----.travis.yml(93B)
----phpunit.xml(355B)
----README.md(2KB)
----tests()
--------default(2KB)
--------Test.php(6KB)
--------counter(2KB)
--------phpunit.phar(2.61MB)
--------bootstrap.php(225B)
----.gitignore(231B)
----composer.json(622B)

网友评论