Skip to content
This repository was archived by the owner on May 19, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions includes/cache/bloom/BloomCacheRedis.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ protected function doAdd( $key, array $members ) {

-- This uses a variation on:
-- 'Less Hashing, Same Performance: Building a Better Bloom Filter'
-- http://www.eecs.harvard.edu/~kirsch/pubs/bbbf/esa06.pdf
-- https://www.eecs.harvard.edu/~michaelm/postscripts/tr-02-05.pdf
local h = { }
h[0] = tonumber(string.sub(hash, 1, 8 ), 16)
h[1] = tonumber(string.sub(hash, 9, 16), 16)
Expand Down Expand Up @@ -249,7 +249,7 @@ protected function doIsHit( $key, $member ) {

-- This uses a variation on:
-- 'Less Hashing, Same Performance: Building a Better Bloom Filter'
-- http://www.eecs.harvard.edu/~kirsch/pubs/bbbf/esa06.pdf
-- https://www.eecs.harvard.edu/~michaelm/postscripts/tr-02-05.pdf
local h = { }
h[0] = tonumber(string.sub(hash, 1, 8 ), 16)
h[1] = tonumber(string.sub(hash, 9, 16), 16)
Expand Down