package
Version:
v0.0.0-...-f6a8cac
Opens a new window with list of versions in this module.
Published: Apr 19, 2016
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
声明一个实现session.Store接口的文件存储器,
在该存储器下,每个session都将以单独的文件存储。
dir为session文件的存放路径。创建的文件权限默认为0600。
l用户记录在GC过程中发生的错误,若指定为nil,则会向stderr输出错误信息。
func NewMemory(lifetime int) *memory
返回一个实现session.Store接口的内存存储器。
内存存储器是不稳定的,随着程序中止或是实例被销毁,
相关的session数据也会随之销毁。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.