同步redis

来源:互联网 发布:大数据改变教育 编辑:程序博客网 时间:2024/06/06 02:39

当对数据进行增删改的时候,要对redis中的数据进行同步


/* 同步夺宝成交列表
* @author Lelonta
* @param
* @return
*/
@Override
public long syncDrawListSuccess(String cid) throws Exception {
long count = 0;
try {
count = jedisClient.hdel(INDEX_DRAWLIST_SUCCESS_KEY,cid +”“);
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}
return count;
}


将上述方法 调用于增删改方法之后!

0 0