mirror of
https://github.com/gofiber/storage.git
synced 2025-10-04 16:22:52 +08:00
mongodb
Storage uses MongoDB
Usage
package main
import "github.com/gofiber/storage/mongodb"
func main() {
// Default storage
store := mongodb.New()
// Custom storage
store := mongodb.New(mongodb.Config{
Addr: "127.0.0.1:27017",
Database: "_database",
Collection: "_storage",
})
}