Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
glsx-rest-admin-job-archetype
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 84e200fb
authored
May 13, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]代码规范
1 parent
05ba7a3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
glsx-rest-admin-job/src/main/java/cn/com/glsx/smartdevice/redis/RedisService.java
glsx-rest-admin-job/src/main/java/cn/com/glsx/smartdevice/redis/RedisService.java
View file @
84e200f
...
...
@@ -3,6 +3,7 @@ package cn.com.glsx.smartdevice.redis;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.data.redis.core.*
;
import
org.springframework.data.redis.serializer.RedisSerializer
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Resource
;
...
...
@@ -24,6 +25,7 @@ public class RedisService {
public
void
set
(
String
key
,
Object
value
)
{
ValueOperations
valueOperations
=
redisTemplate
.
opsForValue
();
redisTemplate
.
setDefaultSerializer
(
RedisSerializer
.
string
());
valueOperations
.
set
(
key
,
value
);
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment