@Override
public void collectPerCreateOrderException(String clientId, int payType) {
Jedis jedis = redisDao.getJedis();
try {
String key = StringUtil.format("{clientId}|{payType}", clientId, payType);
jedis.hincrBy(KEY_WARN_PER_CREATE_ORDER, key, 1);
jedis.expire(KEY_WARN_PER_CREATE_ORDER, TimeUnit.HOUR);
} finally {
redisDao.closeJedis(jedis);
}
}
1 回复
干啥
来自炫酷的 NutzCN
添加回复
请先登陆