New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mondis

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mondis

mongoose and redis linker

latest
Source
npmnpm
Version
0.0.8
Version published
Maintainers
1
Created
Source

mondis

WHAT

  • We just make redis-mongoose more simple.

WHY

  • Why this name?

mondis == mon(goose)(re)dis

  • Why need it?
  • We need read from redis first and write to redis last when you are using mongo and redis. Another words, we wrap DB with cache.
  • We don't want to change exist caller and callee for DB, intrusive mood is confused and coupled.
  • So, we use hooker to decouple it and provide some structs for you.

HOW

  • hash
//just one line, you don't need to change you original code.
/*
 * @Model mongoose model
 * @redis the instance of redis client
 * @prefix for key to redis
 * @ttl time to live for redis
 * @methods ['create', 'remove', 'update', 'findById'] support for Model
 */
mondis.hash(Model, redis, prefix, ttl, methods);

Keywords

mongoose

FAQs

Package last updated on 05 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts