def gettcacheObj(): global tcacheObj if tcacheObj is not None: return tcacheObj tcacheObj = threadCache.threadCache() return tcacheObj
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