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
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
corepkgv2
Commits
223d1b85
Commit
223d1b85
authored
3 years ago
by
Shivprakash Bapat
Browse files
Options
Downloads
Patches
Plain Diff
added logger in session manager
parent
0ad88f9a
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
v2/sessionmanagermdl/sessionmanager.go
+4
-0
v2/sessionmanagermdl/sessionmanager.go
with
4 additions
and
0 deletions
v2/sessionmanagermdl/sessionmanager.go
+
4
−
0
View file @
223d1b85
...
...
@@ -7,6 +7,7 @@ import (
"github.com/tidwall/gjson"
"github.com/tidwall/sjson"
"corelab.mkcl.org/MKCLOS/coredevelopmentplatform/corepkgv2/loggermdl"
"corelab.mkcl.org/MKCLOS/coredevelopmentplatform/corepkgv2/v2/cachemdl"
)
...
...
@@ -119,6 +120,9 @@ func RetrieveAll() map[string]interface{} {
// RetrieveAndExtend returns the entry and extends the entry expiration by provided `SECONDS`, only if remaining time < extendBy.
// If extendBy < 0, it is same as Retrieve function.
func
RetrieveAndExtend
(
key
string
,
extendBy
int64
)
(
Entry
,
error
)
{
loggermdl
.
LogError
(
"***RetrieveAndExtend******** key: "
,
key
)
entry
,
err
:=
Retrieve
(
key
)
if
err
!=
nil
{
return
Entry
{},
err
...
...
This diff is collapsed.
Click to expand it.
Preview
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