1)
// USR Changed on 05 七月 2012 at 17:07:36 by Admin
static void THK_SysGlobalCacheSetFromClass(Args _args)
{
SysGlobalCache globalCache = infolog.objectOnServer() ? appl.globalCache() : infolog.globalCache();
;
if (!globalCache.isSet(curUserId(), sessionId()))
{
infoLog.globalCache().set(curUserId(), sessionId(), "Split");
appl.globalCache().set(curUserId(), sessionId(), "Split");
}
try
{
//do something ... ...
}
catch(Exception::Error)
{
if (globalCache.isSet(curUserId(), sessionId()))
globalCache.remove(curuserid(), sessionid());
}
if (globalCache.isSet(curUserId(), sessionId()))
globalCache.remove(curuserid(), sessionid());
}
2)
// USR Changed on 05 七月 2012 at 17:07:40 by Admin
static void THK_SysGlobalCacheGetFromClass(Args _args)
{
anyType cacheValue;
SysGlobalCache globalCache = infolog.objectOnServer() ? appl.globalCache() : infolog.globalCache();
;
if(globalCache.isSet(curuserid(),sessionid()))
{
cacheValue = globalCache.get(curuserid(),sessionid());
}
}
没有评论:
发表评论