1
0
mirror of https://github.com/redis/node-redis.git synced 2025-07-31 05:44:24 +03:00
Files
node-redis/packages/bloom
Bobby I. 69d507a572 refactor!: redis 8 compatibility improvements and test infrastructure updates (#2893)
* churn(test): use redislabs/client-libs-test for testing

This  switches our testing infrastructure from redis/redis-stack to
redislabs/client-libs-test Docker image across all packages. This change
also updates the default Docker version from 7.4.0-v1 to 8.0-M04-pre.

* churn(test): verify CONFIG SET / GET compatibility with Redis 8

- Add tests for Redis 8 search configuration settings
- Deprecate Redis Search CONFIG commands in favor of standard CONFIG
- Test read-only config restrictions for Redis 8

* churn(test): handle Redis 8 coordinate precision in GEOPOS

- Update GEOPOS tests to handle increased precision in Redis 8 (17 decimal places vs 14)
- Add precision-aware coordinate comparison helper
- Add comprehensive test suite for coordinate comparison function

* test(search): adapt SUGGET tests for Redis 8 empty results

- Update tests to expect empty array ([]) instead of null for SUGGET variants
- Affects sugGet, sugGetWithPayloads, sugGetWithScores, and sugGetWithScoresWithPayloads

* test(search): support Redis 8 INFO indexes_all field

- Add indexes_all field introduced in Redis 8 to index definition test

* refactor!(search): simplify PROFILE commands to return raw response

- BREAKING CHANGE: FT.PROFILE now returns raw response, letting users implement their own parsing

* test: improve version-specific test coverage

- Add `testWithClientIfVersionWithinRange` method to run tests for specific Redis versions
- Refactor TestUtils to handle version comparisons more accurately
- Update test utilities across Redis modules to run tests against multiple versions, and not against latest only
2025-02-27 10:56:58 +02:00
..
2022-12-26 13:35:37 -05:00
2025-01-30 11:17:29 +02:00
2022-01-31 12:52:19 -05:00

@redis/bloom

This package provides support for the RedisBloom module, which adds additional probabilistic data structures to Redis.

Should be used with redis/@redis/client.

⚠️ To use these extra commands, your Redis server must have the RedisBloom module installed.

RedisBloom provides the following probabilistic data structures:

  • Bloom Filter: for checking set membership with a high degree of certainty.
  • Cuckoo Filter: for checking set membership with a high degree of certainty.
  • T-Digest: for estimating the quantiles of a stream of data.
  • Top-K: Maintain a list of k most frequently seen items.
  • Count-Min Sketch: Determine the frequency of events in a stream.

For some examples, see bloom-filter.js, cuckoo-filter.js, count-min-sketch.js and topk.js in the examples folder.