This article will introduce you to the Bloom Filter in Redis and introduce the installation and configuration methods of Bloom Filter. I hope it will be helpful to you!
Redis installs Bloom Filter. Some students specify what Bloom Filter is and when to use it, but they may not have actually used Bloom Filter. device, so I specially released the installation chapter! ! ! You can study it in conjunction with my Bloom filter article so that you can actually operate it. [Related recommendations: Redis video tutorial]
redis-server -v
v1.1.1
https://github.com/RedisLabsModules/rebloom/archive/v1.1.1.tar.gz
v2.2.6
https://github.com/RedisLabsModules/rebloom/archive/v2.2.6.tar.gz
The following installations are all completed in the specified directory. You can choose a suitable unified directory for software installation and management.
wget https://github.com/RedisLabsModules/rebloom/archive/v2.2.6.tar.gz
tar -zxvf v2.2.6.tar.gz
cd RedisBloom-2.2.6/ make
After successful compilation, you can see the redisbloom.so file
loadmodule /usr/local/soft/RedisBloom-2.2.6/redisbloom.so
redis. The loadmodule configuration items are preset in the conf configuration file. We can modify them directly here. Subsequent modifications will be more convenient. \
#Be sure to remember to restart Redis after saving and exiting!
Be sure to remember to restart Redis after saving and exiting!
Be sure to remember to restart Redis after saving and exiting!
The main instructions for the Redis integrated Bloom filter are as follows:
Connect to the client for testing. If the command is valid, the integration is successful\
If the following situation occurs (error) ERR unknown command, you can check it by the following method:
For more programming-related knowledge, please visit: Introduction to Programming! !
The above is the detailed content of A brief discussion on the installation and configuration methods of Bloom filters in Redis. For more information, please follow other related articles on the PHP Chinese website!