| | |
| | | }
|
| | |
|
| | | /**
|
| | | * 将信息永久保存到Redis
|
| | | * |
| | | * @param goods
|
| | | */
|
| | | public void saveTaoBaoGoodsBriefForever(TaoBaoGoodsBrief goods) {
|
| | | String key = "taobao-goods-" + goods.getAuctionId();
|
| | | if (Constant.IS_OUTNET) {
|
| | | cacheCommonString(key, JsonUtil.getSimpleGson().toJson(goods));
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * 临时存储淘宝的商品详情
|
| | | *
|
| | | * @param goods
|
| | |
| | | String key = "taobao-common-token-" + auctionId;
|
| | | if (Constant.IS_OUTNET) {
|
| | | if (!StringUtil.isNullOrEmpty(token)) {
|
| | | // 口令缓存24小时
|
| | | cacheCommonString(key, token, 60 * 60 * 24);
|
| | | // 口令缓存10天
|
| | | cacheCommonString(key, token, 60 * 60 * 24 * 10);
|
| | | }
|
| | | }
|
| | | }
|