# walle-module

version：1.0.x

## description 
IBMS 过滤重复数值

## 使用

``` js
//获取缓存对象
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
公司内部使用