Documentation ¶
Index ¶
- Constants
- type Config
- type Provider
- func (mp *Provider) Count() int
- func (mp *Provider) Destroy(sessionId string) error
- func (mp *Provider) GC()
- func (mp *Provider) Init(lifeTime int64, memoryConfig fasthttpsession.ProviderConfig) error
- func (mp *Provider) NeedGC() bool
- func (mp *Provider) ReadStore(sessionId string) (fasthttpsession.SessionStore, error)
- func (mp *Provider) Regenerate(oldSessionId string, sessionId string) (fasthttpsession.SessionStore, error)
- type Store
Constants ¶
View Source
const ProviderName = "memory"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) Init ¶
func (mp *Provider) Init(lifeTime int64, memoryConfig fasthttpsession.ProviderConfig) error
init provider config
func (*Provider) ReadStore ¶
func (mp *Provider) ReadStore(sessionId string) (fasthttpsession.SessionStore, error)
read session store by session id
func (*Provider) Regenerate ¶
func (mp *Provider) Regenerate(oldSessionId string, sessionId string) (fasthttpsession.SessionStore, error)
regenerate session
type Store ¶
type Store struct { fasthttpsession.Store // contains filtered or unexported fields }
func NewMemoryStoreData ¶
new memory store data
Click to show internal directories.
Click to hide internal directories.