Coder Social home page Coder Social logo

pasupulaphani / node-redis-store Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 184 KB

Simplistic node redis store ready can scale with generic-pool support

Home Page: https://pasupulaphani.github.io/node-redis-store

License: Do What The F*ck You Want To Public License

JavaScript 91.32% Shell 7.85% Dockerfile 0.83%
connection-pooling scale store cache redis node-pool generic-pool

node-redis-store's Introduction

npm version Build Status Coverage Status Dependency Status Gratipay donate button

node-redis-store See on Github

Simplistic node redis store ready can scale with generic-pool support

Prerequisites

node >= 4 This module requires nodejs v4 or above as it has dependencies on es6 components such as Map, Set, Promise etc.

Getting started

    npm install node-redis-store

Usage

    const RedisStore = require("node-redis-store");
    const store = new RedisStore();

    // set
    store.set("key", {a: "b"});

API

  • RedisStore([options])

options object properties

Name Type Description
name string

Name your store

redisOptions object

opts from node_redis#options-object-properties

poolOptions object

opts from node-pool#createpool

logger object

Inject your custom logger

Run tests

bash test.sh

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

Patreon donate button Gratipay donate button Flattr donate button

Click here to lend your support to: simple-node-redis-cache and make a donation at pledgie.com !

Contributors

These amazing people have contributed code to this project:

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.


<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');ga('create', 'UA-57413413-4', 'auto');ga('send', 'pageview');</script> ---

node-redis-store's People

Contributors

pasupulaphani avatar snyk-bot avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

chrisogden

node-redis-store's Issues

acquire timeout

When pool is full, lib will block until a connection becomes available.

Is there a way to set a timeout on a connection attempt? I would rather not block indefinitely if the pool is full.

write load tests and publish performance metrics

What am I looking to achieve

Connection Pool Utilization

  • Are the pools properly sized based on the expected load per runtime?
  • Are pools constantly exhausted? Do we have a connection leak?

Connection Acquisition Time

  • Are we perfectly configured and just need the amount of connections in the pool?
  • Or do we see increasing Acquisition time (time it takes to get a connection from the pool) which tells us we need more connections to fulfill the demand.

ES7 async/await constructs

In order to use it with ES7 async/await constructs, it needs to be wrapped in ES6 Promises.

  • Move to es7 and compile to others

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.