Sorry for the confusing terminology, I meant caching the object that
is stored in MongoDB when using Mongoose, not the model definition
itself. Basically I want to cache the result of a mongoose query
(Post.findOne(...)) so that I don't have to keep retrieving the same
object from the MongoDB.
On Apr 16, 4:04 pm, Kevin Sakhuja <
kevin.sakh...@gmail.com> wrote:
> I'm pretty new so ignore if I'm being stupid.
>
> Why would u want to cache the model? Just load it var model = require (model) - it'll just get loaded in memory, faster than going to redis server.
>
> Best,
> Kev
> > --
> >
http://mongoosejs.com
> >
http://github.com/learnboost/mongoose
> > You received this message because you are subscribed to the Google
> > Groups "Mongoose Node.JS ORM" group.
> > To post to this group, send email to
mongoo...@googlegroups.com
> > To unsubscribe from this group, send email to
> >
mongoose-orm...@googlegroups.com
> > For more options, visit this group at
> >
http://groups.google.com/group/mongoose-orm?hl=en