Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
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
徐少华
midjourney-proxy
Commits
69f6a88b
Commit
69f6a88b
authored
Jan 30, 2019
by
shuyunhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add readis method
parent
957ac6e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
6 deletions
+27
-6
JedisClusterUtils.java
...om/pcloud/common/utils/cache/redis/JedisClusterUtils.java
+27
-6
No files found.
pcloud-common/src/main/java/com/pcloud/common/utils/cache/redis/JedisClusterUtils.java
View file @
69f6a88b
...
...
@@ -674,7 +674,10 @@ public class JedisClusterUtils {
}
/**
* 添加内容到指定key的list中,先进后出
* 队列(list集合)操作
*/
/**
* 添加内容到指定key的list中,先进后出(左放置)
*
* @param key
* @param field
...
...
@@ -692,7 +695,7 @@ public class JedisClusterUtils {
}
/**
* 添加内容到指定key的list中,先进后出
* 添加内容到指定key的list中,先进后出
(左放置)
*
* @param key
* @param obj
...
...
@@ -709,7 +712,7 @@ public class JedisClusterUtils {
}
/**
* 添加内容到指定key的list中,先进后出
* 添加内容到指定key的list中,先进后出
(左放置)
*
* @param key
* @param value
...
...
@@ -726,7 +729,7 @@ public class JedisClusterUtils {
}
/**
* 添加内容到指定key的list中,先进先出
* 添加内容到指定key的list中,先进先出
(从右放置)
*
* @param key
* @param field
...
...
@@ -744,7 +747,7 @@ public class JedisClusterUtils {
}
/**
* 添加内容到指定key的list中,先进先出
* 添加内容到指定key的list中,先进先出
(从右放置)
*
* @param key
* @param obj
...
...
@@ -761,7 +764,7 @@ public class JedisClusterUtils {
}
/**
* 添加内容到指定key的list中,先进先出
* 添加内容到指定key的list中,先进先出
(从右放置)
*
* @param key
* @param field
...
...
@@ -978,6 +981,24 @@ public class JedisClusterUtils {
}
return
null
;
}
/**
* 删除指定元素
* 该命令用于从key对应的list中,移除前count次出现 的值为value的元素。count参数有三种情况:
* count > 0: 表示从头向尾(左到右)移除值为value的元素。
* count < 0: 表示从尾向头(右向左)移除值为value的元素。
* count = 0: 表示移除所有值为value的元素
* @param key
* @return
*/
public
static
Long
lrem
(
String
key
,
long
count
,
String
value
)
{
try
{
return
jedisCluster
.
lrem
(
key
,
count
,
value
);
}
catch
(
Exception
e
)
{
LOGGER
.
warn
(
"jedis删除指定元素失败:"
+
e
.
getMessage
(),
e
);
}
return
null
;
}
/**
* 删除指定区间之外的元素
...
...
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