简体   繁体   English

如何在 AWS Elasticache (Redis) 中使用布隆过滤器?

[英]How to use Bloom Filter with AWS Elasticache (Redis)?

How to use Bloom Filter module in AWS Elasticache redis, for a local setup importing the module can help solve th issue, but I am not sure how can I use a Bloom Filter package like rebloom( https://github.com/RedisLabsModules/rebloom ) in AWS Elasticache.如何在 AWS Elasticache redis 中使用 Bloom Filter 模块,对于导入模块的本地设置可以帮助解决这个问题,但我不确定如何使用像 rebloom 这样的 Bloom Filter 包( https://github.com/RedisLabsModules/ rebloom )在 AWS Elasticache 中。

You can't. 你不能 But you if you get a Managed Redis from RedisLabs you are getting it built in. 但是,如果您从RedisLabs获得了Managed Redis,那么它就是内置的。

See: https://redislabs.com/redis-enterprise/vpc/ 参见: https : //redislabs.com/redis-enterprise/vpc/

You can try Redisson 's implementation of Bloom Filter.您可以尝试Redisson的 Bloom Filter 实现。 It works with any Redis vendor.它适用于任何 Redis 供应商。

RBloomFilter<SomeObject> bloomFilter = redisson.getBloomFilter("sample");
// initialize bloom filter with 
// expectedInsertions = 55000000
// falseProbability = 0.03
bloomFilter.tryInit(55000000L, 0.03);

bloomFilter.add(new SomeObject("field1Value", "field2Value"));
bloomFilter.add(new SomeObject("field5Value", "field8Value"));

bloomFilter.contains(new SomeObject("field1Value", "field8Value"));
bloomFilter.count();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Redis Elasticache 亚毫秒响应时间? - Redis Elasticache sub milli second response time? 高流量时的 AWS Elasticache 名称解析问题 - AWS Elasticache name resolution issue on high traffic 我可以在 Heroku 上使用 Amazon Elasticache 吗? - Can I use Amazon Elasticache on Heroku? 我可以使用本机 Redis 命令在 Amazon Elasticache for Redis 中管理/创建用户吗? - Can I manage/create users in Amazon Elasticache for Redis using native Redis commands? 如何仅使用值进行过滤,而不管 AWS CLI 中的名称 - How to filter with value only regardless the name in AWS CLI 如何将 typeDORM 与 NestJS 和 AWS Lambda 一起使用 - How to use typeDORM with NestJS and AWS Lambda 如何将 AWS CLI 与 Digital Ocean Spaces 结合使用? - How to use AWS CLI with Digital Ocean Spaces? 尝试从 App Runner 连接到 AWS ElasticCache Redis 时出现 RedisTimeoutException - RedisTimeoutException when trying to connect to AWS ElasticCache Redis from App Runner AWS KMS 如何确定解密时使用哪个密钥? - How AWS KMS determine which key to use when decrypt? 如何在 AWS Elastic Beanstalk 上设置和使用 Laravel 调度? - How do I setup and use Laravel Scheduling on AWS Elastic Beanstalk?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM