comment update for package gsession

This commit is contained in:
John Guo
2021-04-02 18:00:50 +08:00
parent 4d1e25cdab
commit ac4485dc84

View File

@ -15,9 +15,13 @@ import (
// Manager for sessions.
type Manager struct {
ttl time.Duration // TTL for sessions.
storage Storage // Storage interface for session storage.
sessionData *gcache.Cache // Session data cache for session TTL.
ttl time.Duration // TTL for sessions.
storage Storage // Storage interface for session storage.
// sessionData is the memory data cache for session TTL,
// which is available only if the Storage does not stores any session data in synchronizing.
// Please refer to the implements of StorageFile, StorageMemory and StorageRedis.
sessionData *gcache.Cache
}
// New creates and returns a new session manager.