Redis

PHP + Redis to implement Bloom filter

Bloom filter is a kind of random data structure with high space efficiency, which is specially used to detect whether there are specific elements in the set. The Bloom filter is a data structure composed of a bit array with a length of m bits and k independent hash functions.

Redis five data types usage scenarios

Redis is now one of the most popular NoSQL databases. Redis is an open source written in ANSI C, contains a variety of data structures, supports network, memory-based, optional persistence key-value pair storage database

Go Redis distributed lock

Why do you need distributed locks? Lock uid, prevent repeated orders, lock inventory, prevent oversold, lock account, prevent concurrent operations...etc

PHP使用Redis的GEO(地理位置)

Redis has added support for GEO (geographic location) since version 3.2, but the earth is not a perfect sphere, and the deviation may be 0.5% in the worst case. Areas close to the poles are not supported. The valid longitude of the supported coordinates is from -180 degrees to 180 degrees; the valid latitude is from -85.05112878 degrees to 85.05112878 degrees. If it exceeds the range, an error will be reported