Download the PHP package razorpay/php-bloom-filter without Composer
On this page you can find all versions of the php package razorpay/php-bloom-filter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download razorpay/php-bloom-filter
More information about razorpay/php-bloom-filter
Files in razorpay/php-bloom-filter
Download razorpay/php-bloom-filter
More information about razorpay/php-bloom-filter
Files in razorpay/php-bloom-filter
Vendor razorpay
Package php-bloom-filter
Short Description The best way to check object existence and save memory and disk usage.
License BSD-3-Clause
Homepage https://github.com/Razorpay/php-bloom-filter
Package php-bloom-filter
Short Description The best way to check object existence and save memory and disk usage.
License BSD-3-Clause
Homepage https://github.com/Razorpay/php-bloom-filter
Please rate this library. Is it a good library?
Informations about the package php-bloom-filter
php.bloom.filter
Bloom filter - is the best way to check object existance and save memory and disk usage.
Usage
Examples and benchmarks are available in examples directory.
Basic parameters:
- entries_max (int) Maximal number of entries objects. Default: 100.
- error_chance (float) (0;1) Chance of error check existance. Used for automatic setup next 2 parameters. Default: 0.001.
- set_size (int) Size of set object. Default: calculated.
- hash_count (int) Count of unique hash Objects. Default: calculated.
- counter (boolean) Uses only if ypu want to remove elements too. Slows down. Default: false.
- hash (array) Parameters for Hash objects.
- strtolower (boolean) Put string to lower case or not. Default: true;
Simple code example:
Caching
You can also cache the whole object, just using serialize() and unserialize() functions
When to use
- Get/Set operations are more than 0.001
- You need a fast check with big set, more than 100 000 entries
Use cases:
- to cooldown HDD usage
- to speedup checking of object existence (with counter 40% slower, but still more faster than native)
- to save memory
License:
BSD-3-Clause
All versions of php-bloom-filter with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3
The package razorpay/php-bloom-filter contains the following files
Loading the files please wait ....