Skip to content

Latest commit

 

History

History

mongo2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

MongoDB

【注意】使用MongoDB时,若需设置过期时间,只能在 NewMongoBackend() 函数中设置

Installation

go get -u github.com/gojuukaze/YTask/drives/mongo2/v3

Backend

package main

import (
    "github.com/gojuukaze/YTask/drives/mongo2/v3"
)

func main() {
	backend := mongo2.NewMongoBackend("127.0.0.1", "27017", "", "", "test", "test", 200)
	// ...
}