🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

sequelize-turbo

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequelize-turbo

Turbo makes dealing with FAUW objects lightning fast.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Sequelize Turbo

Turbo is a caching layer that is eventually consitant for FAUW (Frequent access, unfrequent writes) objects.

How to install

1. Add the package

npm install sequelize-turbo --save
yarn add --save

2. Wrap objects

Whenever you create Sequelize objects in your code, wrap them as follow:

const Turbo = require('sequelize-turbo')

const User = Turbo(
    sequelize.define('User', {
        ...config
    })
)

export default User

That's it! Turbo uses RAM to cache objects. However, is a distributed envrionment, using Redis is much more efficient.

FAQs

Package last updated on 30 Jan 2018

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