Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PlexPt/rocket-pt
/ randomKey
Method
randomKey
src/main/java/com/rocketpt/server/util/RedisUtil.java:159–161 ·
view source on GitHub ↗
从当前数据库中随机返回一个 key @return
()
Source
from the content-addressed store, hash-verified
157
* @
return
158
*/
159
public
String randomKey() {
160
return
redisTemplate.randomKey();
161
}
162
163
/**
164
* 修改 key 的名称
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected