Skip to content

exporting mongoose.Query.prototype.cache ; #1

@chrisn-au

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 ?

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