package
0.0.19
Repository: https://github.com/gzorm/commons.git
Documentation: pkg.go.dev

# Functions

MustNewModel returns a Model with a cache cluster, exists on errors.
MustNewNodeModel returns a Model with a cache node, exists on errors.
NewModel returns a Model with a cache cluster.
NewModelWithCache returns a Model with a custom cache.
NewNodeModel returns a Model with a cache node.

# Variables

ErrNotFound is an alias of mongo.ErrNoDocuments.

# Structs

A Model is a mongo model that built with cache capability.