Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
knowledge-platform
Commits
d3c1c3d0
Commit
d3c1c3d0
authored
2 years ago
by
shishir suman
Browse files
Options
Download
Plain Diff
Merge remote-tracking branch 'origin/Gcloud_fix' into Gcloud_fix
parents
2f62631a
c31e4fe9
master
Gcloud_fix
Remove_unwantedCode_Gcloud_fix
bulk-upload-test_excel
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform-core/platform-cache/src/main/scala/org/sunbird/cache/impl/RedisCache.scala
+4
-0
...he/src/main/scala/org/sunbird/cache/impl/RedisCache.scala
with
4 additions
and
0 deletions
+4
-0
platform-core/platform-cache/src/main/scala/org/sunbird/cache/impl/RedisCache.scala
+
4
−
0
View file @
d3c1c3d0
...
@@ -149,9 +149,13 @@ object RedisCache extends RedisConnector {
...
@@ -149,9 +149,13 @@ object RedisCache extends RedisConnector {
def
getList
(
key
:
String
,
handler
:
(
String
)
=>
List
[
String
]
=
defaultListHandler
,
ttl
:
Int
=
0
)
:
List
[
String
]
=
{
def
getList
(
key
:
String
,
handler
:
(
String
)
=>
List
[
String
]
=
defaultListHandler
,
ttl
:
Int
=
0
)
:
List
[
String
]
=
{
val
jedis
=
getConnection
val
jedis
=
getConnection
try
{
try
{
logger
.
info
(
"Before "
+
key
)
var
data
=
jedis
.
smembers
(
key
).
asScala
.
toList
var
data
=
jedis
.
smembers
(
key
).
asScala
.
toList
logger
.
info
(
"after "
+
data
)
if
(
null
!=
handler
&&
(
null
==
data
||
data
.
isEmpty
))
{
if
(
null
!=
handler
&&
(
null
==
data
||
data
.
isEmpty
))
{
logger
.
info
(
"Before "
+
handler
)
data
=
handler
(
key
)
data
=
handler
(
key
)
logger
.
info
(
"After "
+
data
)
if
(
null
!=
data
&&
!
data
.
isEmpty
)
if
(
null
!=
data
&&
!
data
.
isEmpty
)
saveList
(
key
,
data
,
ttl
,
false
)
saveList
(
key
,
data
,
ttl
,
false
)
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets