Finish half translation work.
This commit is contained in:
@ -9,11 +9,9 @@ type SessionService struct {
|
||||
sessionDao *SessionDao
|
||||
}
|
||||
|
||||
//初始化方法
|
||||
func (this *SessionService) Init() {
|
||||
this.BaseBean.Init()
|
||||
|
||||
//手动装填本实例的Bean. 这里必须要用中间变量方可。
|
||||
b := core.CONTEXT.GetBean(this.userDao)
|
||||
if b, ok := b.(*UserDao); ok {
|
||||
this.userDao = b
|
||||
@ -26,10 +24,10 @@ func (this *SessionService) Init() {
|
||||
|
||||
}
|
||||
|
||||
//执行清理操作
|
||||
//System cleanup.
|
||||
func (this *SessionService) Cleanup() {
|
||||
|
||||
this.logger.Info("[SessionService]执行清理:清除缓存中所有Session记录,共%d条。", core.CONTEXT.GetSessionCache().Count())
|
||||
this.logger.Info("[SessionService] clean up. Delete all Session. total:%d", core.CONTEXT.GetSessionCache().Count())
|
||||
|
||||
core.CONTEXT.GetSessionCache().Truncate()
|
||||
}
|
||||
|
Reference in New Issue
Block a user