Example #1
0
def gettcacheObj():
    global tcacheObj

    if tcacheObj is not None:
        return tcacheObj

    tcacheObj = threadCache.threadCache()
    return tcacheObj
Example #2
0
def init(reqId = "NA"):

    if reqId is None:
        reqId = "NA"

    userName = "******"

    global tcacheObj

    if tcacheObj is None:
        tcacheObj = threadCache.threadCache()

    tcacheObj.setSessionId(reqId)
    tcacheObj.setUserId(userName)
    tcacheObj.setLogger(customLogger.getApiLogger())
    return tcacheObj