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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user