Commit 223d1b85 authored by Shivprakash Bapat's avatar Shivprakash Bapat
Browse files

added logger in session manager

parent 0ad88f9a
Branches
No related merge requests found
Showing with 4 additions and 0 deletions
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment