Documentation ¶
Overview ¶
Package mongocache implements the presto.Cache interface using a mongodb database for persistent storage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoCache ¶
type MongoCache struct {
// contains filtered or unexported fields
}
MongoCache represents a single database connection
func New ¶
func New(client *mongo.Client, database string, collection string) *MongoCache
New returns a fully initialized mongodb cache
func (*MongoCache) Get ¶
func (cache *MongoCache) Get(key string) string
Get retrieves a single value from the cache. If the value does not exist in the cache, then "" is returned
Click to show internal directories.
Click to hide internal directories.