1.0.2 • Published 6 years ago

walle-module v1.0.2

Weekly downloads
1
License
UNLICENSED
Repository
-
Last release
6 years ago

walle-module

version:1.0.x

description

IBMS 过滤重复数值

使用

//获取缓存对象
const cache=global.get('wem').cache();

//获取配置,配置接收的queue名称,通过环境变量定义
const config=global.get('wem').config;

//过滤方法
const filter=global.get('wem').filter;
//@reurn boolean true:值与老的不一样,false:与老值一致
filter(payload,cache);

环境变量

  • 定义运行环境 NODE_ENV=prod
  • 接收代过滤数据通道 WALLE_QUEUE
  • 发送过滤后数据时的route key WALLE_FILTERED_TOPIC

License

公司内部使用

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago