记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
7fc33e66
Commit
7fc33e66
authored
Aug 23, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redis
parent
3de64e31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
DataImpl.java
...quidnet/service/platform/service/impl/kylin/DataImpl.java
+1
-3
JxlDataImpl.java
...net/service/sweet/service/impl/syncRedis/JxlDataImpl.java
+9
-3
No files found.
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/kylin/DataImpl.java
View file @
7fc33e66
...
...
@@ -942,9 +942,7 @@ public class DataImpl {
static
{
// DefaultJedisClientConfig.Builder builder = DefaultJedisClientConfig.builder().password("NBs$%6hW").database(15);
// jedis = new Jedis(new HostAndPort("zhengzai.redis.rds.aliyuncs.com", 6380), builder.build());
// r-2ze7002ckw5u75fgukpd.redis.rds.aliyuncs.com test
// 39.106.122.201 dev
// zhengzai.redis.rds.aliyuncs.com 线上
jedisPool
=
new
JedisPool
(
"zhengzai.redis.rds.aliyuncs.com"
,
6380
);
toObjMapper
=
new
ObjectMapper
();
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/syncRedis/JxlDataImpl.java
View file @
7fc33e66
...
...
@@ -35,6 +35,9 @@ public class JxlDataImpl {
private
static
final
ObjectMapper
toObjMapper
;
static
{
// r-2ze7002ckw5u75fgukpd.redis.rds.aliyuncs.com test
// 39.106.122.201 dev
// zhengzai.redis.rds.aliyuncs.com 线上
jedisPool
=
new
JedisPool
(
"zhengzai.redis.rds.aliyuncs.com"
,
6380
);
toObjMapper
=
new
ObjectMapper
();
...
...
@@ -86,10 +89,12 @@ public class JxlDataImpl {
String
pushIos
=
KylinRedisConst
.
ADMIN_UPUSH_LIST_ANDROID
;
// LinkedList<AdminUpushVo> pushAndroidList = (LinkedList<AdminUpushVo>) redis.get(pushAndroid);
LinkedList
<
AdminUpushVo
>
pushAndroidList
=
toObjMapper
.
readValue
(
redis
.
get
(
pushAndroid
),
new
TypeReference
<
LinkedList
<
AdminUpushVo
>>(){});
LinkedList
<
AdminUpushVo
>
pushAndroidList
=
toObjMapper
.
readValue
(
redis
.
get
(
pushAndroid
),
new
TypeReference
<
LinkedList
<
AdminUpushVo
>>()
{
});
redisUtil
.
set
(
pushAndroid
,
pushAndroidList
);
// LinkedList<AdminUpushVo> pushIosList = (LinkedList<AdminUpushVo>) redis.get(pushIos);
LinkedList
<
AdminUpushVo
>
pushIosList
=
toObjMapper
.
readValue
(
redis
.
get
(
pushIos
),
new
TypeReference
<
LinkedList
<
AdminUpushVo
>>(){});
LinkedList
<
AdminUpushVo
>
pushIosList
=
toObjMapper
.
readValue
(
redis
.
get
(
pushIos
),
new
TypeReference
<
LinkedList
<
AdminUpushVo
>>()
{
});
redisUtil
.
set
(
pushIos
,
pushIosList
);
return
true
;
...
...
@@ -197,7 +202,8 @@ public class JxlDataImpl {
String
bannerKey
=
KylinRedisConst
.
ADMIN_BANNER_LIST
;
// ArrayList<KylinBanners> bannerList = (ArrayList<KylinBanners>) redis.get(bannerKey);
ArrayList
<
KylinBanners
>
bannerList
=
toObjMapper
.
readValue
(
redis
.
get
(
bannerKey
),
new
TypeReference
<
ArrayList
<
KylinBanners
>>(){});
ArrayList
<
KylinBanners
>
bannerList
=
toObjMapper
.
readValue
(
redis
.
get
(
bannerKey
),
new
TypeReference
<
ArrayList
<
KylinBanners
>>()
{
});
redisUtil
.
set
(
bannerKey
,
bannerList
);
return
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment