Skip to content

exporting mongoose.Query.prototype.cache ; #1

Description

@chrisn-au

Fantastic work thanks - A question and possibly due to my ignorance but to get this to work I needed to export the cache function

module.exports.cache = mongoose.Query.prototype.cache ;

and then require it in the calling module

const  clearKey  = require("./cache").clearKey;
const cache = require('./cache').cache

Is this correct ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions