1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 12:57:05 +00:00

Update to 8.2.1 | LevelDB-based session database implemented, Read HISTORY.md

Former-commit-id: 4e341b185aedaaa9a04fdebe43b4364dec59e3c8
This commit is contained in:
kataras
2017-08-08 16:00:34 +03:00
parent 92d0b146df
commit 056f9a9415
10 changed files with 420 additions and 7 deletions

View File

@@ -36,7 +36,10 @@ type Database struct {
async bool
}
// New creates and returns a new file-storage database instance based on the "path".
// New creates and returns a new file-storage database instance based on the "directoryPath".
// DirectoryPath should is the directory which the leveldb database will store the sessions,
// i.e ./sessions/
//
// It will remove any old session files.
func New(directoryPath string, fileMode os.FileMode) (*Database, error) {
lindex := directoryPath[len(directoryPath)-1]