Skip to content

Starchup/loopback-redis-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loopback-redis-cache

Caching system for Loopback through redis

Usage client side

In a boot script

var cache = require('loopback-redis-cache')(
{
    app: app,
    models: ['Customer']
});

Then in the models you want to use cache

var cache = require('loopback-redis-cache')();
cache.findObj('Customer', 'id', 1).then(function (customer)
{
    console.log(customer);
});

About

Caching system for Loopback through redis

Resources

License

Stars

Watchers

Forks

Packages

No packages published