How to set TTL Indexes in Mongodb document using mongo-go-driver?

前端 未结 0 891
隐瞒了意图╮
隐瞒了意图╮ 2020-12-22 05:01

How do I set TTL indexes in a document using "mongo-go-driver"?

suppose here is my document model:

type Session struct {
    ID           pri         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题