Documentation ¶
Index ¶
- type Memory
- func (m *Memory) GC() error
- func (m *Memory) Get(ctx context.Context, id string) (interface{}, error)
- func (m *Memory) GetCache(ctx context.Context, id string) ([]byte, error)
- func (m *Memory) Init(paras map[string]interface{}) error
- func (m *Memory) New(ctx context.Context, id string) (string, error)
- func (m *Memory) PutCache(ctx context.Context, id string, data []byte) error
- func (m *Memory) Release(ctx context.Context, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory provides a session driver with 'memory' backend
func (*Memory) Get ¶
Get returns the session interface by the id TODO: the return interface is not designed, useless?
func (*Memory) GetCache ¶
GetCache gets the data from a session by its id TODO: id should be same with session id
Click to show internal directories.
Click to hide internal directories.