Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nouiWithSpringMVC
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
gechengyang
nouiWithSpringMVC
Commits
4f89efa8
Commit
4f89efa8
authored
Jan 21, 2021
by
WeiCong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整缓存模块
parent
18242105
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
0 deletions
+23
-0
RedisCache.java
...main/java/org/sss/presentation/noui/cache/RedisCache.java
+23
-0
eibs-container-3.5.0.jar
src/main/webapp/WEB-INF/lib/eibs-container-3.5.0.jar
+0
-0
eibs-containerex-1.0.0.jar
src/main/webapp/WEB-INF/lib/eibs-containerex-1.0.0.jar
+0
-0
eibs-hibernatesupport-2.0.0.jar
src/main/webapp/WEB-INF/lib/eibs-hibernatesupport-2.0.0.jar
+0
-0
eibs-mybatissupport-1.0.0.jar
src/main/webapp/WEB-INF/lib/eibs-mybatissupport-1.0.0.jar
+0
-0
eibs-pojosupport-2.0.0.jar
src/main/webapp/WEB-INF/lib/eibs-pojosupport-2.0.0.jar
+0
-0
No files found.
src/main/java/org/sss/presentation/noui/cache/RedisCache.java
View file @
4f89efa8
...
@@ -38,6 +38,19 @@ public class RedisCache extends AbstractCache {
...
@@ -38,6 +38,19 @@ public class RedisCache extends AbstractCache {
}
}
@Override
@Override
public
Object
cacheRead
(
String
key
,
long
l
)
{
try
{
Object
val
=
RedisUtil
.
get
(
key
);
if
(
val
!=
null
)
{
RedisUtil
.
set
(
key
,
val
,
(
int
)
l
);
}
return
val
;
}
catch
(
Exception
e
)
{
throw
new
NoUiException
(
"从缓存["
+
this
.
cacheName
+
"]中获取key="
+
key
+
"的值出现异常"
,
e
);
}
}
@Override
public
boolean
cacheWrite
(
String
key
,
Object
val
)
{
public
boolean
cacheWrite
(
String
key
,
Object
val
)
{
try
{
try
{
RedisUtil
.
set
(
key
,
val
);
RedisUtil
.
set
(
key
,
val
);
...
@@ -46,4 +59,14 @@ public class RedisCache extends AbstractCache {
...
@@ -46,4 +59,14 @@ public class RedisCache extends AbstractCache {
throw
new
NoUiException
(
"将key="
+
key
+
"的值放入缓存["
+
this
.
cacheName
+
"]出现异常"
,
e
);
throw
new
NoUiException
(
"将key="
+
key
+
"的值放入缓存["
+
this
.
cacheName
+
"]出现异常"
,
e
);
}
}
}
}
@Override
public
boolean
cacheWrite
(
String
key
,
Object
val
,
long
l
)
{
try
{
RedisUtil
.
set
(
key
,
val
,
(
int
)
l
);
return
true
;
}
catch
(
Exception
e
)
{
throw
new
NoUiException
(
"将key="
+
key
+
"的值放入缓存["
+
this
.
cacheName
+
"]出现异常"
,
e
);
}
}
}
}
src/main/webapp/WEB-INF/lib/eibs-container-3.5.0.jar
View file @
4f89efa8
No preview for this file type
src/main/webapp/WEB-INF/lib/eibs-containerex-1.0.0.jar
View file @
4f89efa8
No preview for this file type
src/main/webapp/WEB-INF/lib/eibs-hibernatesupport-2.0.0.jar
View file @
4f89efa8
No preview for this file type
src/main/webapp/WEB-INF/lib/eibs-mybatissupport-1.0.0.jar
View file @
4f89efa8
No preview for this file type
src/main/webapp/WEB-INF/lib/eibs-pojosupport-2.0.0.jar
View file @
4f89efa8
No preview for this file type
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