Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
qa-platform
Commits
063364d2
Commit
063364d2
authored
Apr 07, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改redis配置及新增过期时间
parent
1e7e551a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
XyqbGenDataServiceImpl.java
...tform/zdata/service/xyqb/impl/XyqbGenDataServiceImpl.java
+2
-0
application.yml
src/main/resources/application.yml
+2
-2
No files found.
src/main/java/cn/qg/qaplatform/zdata/service/xyqb/impl/XyqbGenDataServiceImpl.java
View file @
063364d2
...
...
@@ -16,6 +16,7 @@ import org.springframework.stereotype.Service;
import
javax.annotation.Resource
;
import
java.net.URISyntaxException
;
import
java.util.Map
;
import
java.util.concurrent.TimeUnit
;
@Service
...
...
@@ -242,6 +243,7 @@ public class XyqbGenDataServiceImpl implements XyqbGenDataService {
public
void
setUserStatusRedisValue
(
String
namespace
,
String
phoneNo
,
Integer
status
)
{
String
redisKey
=
namespace
+
"_"
+
phoneNo
;
redisTemplate
.
opsForValue
().
set
(
redisKey
,
status
);
redisTemplate
.
expire
(
redisKey
,
1800
,
TimeUnit
.
SECONDS
);
}
...
...
src/main/resources/application.yml
View file @
063364d2
...
...
@@ -13,8 +13,8 @@ spring:
date-format
:
yyyy-MM-dd HH:mm:ss
time-zone
:
GMT+8
redis
:
host
:
172.17.5.
5
port
:
3
2236
host
:
172.17.5.
17
port
:
3
1509
database
:
0
password
:
jedis
:
...
...
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