🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

lakehouse-sequelize-restapi-keycloak-cache

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lakehouse-sequelize-restapi-keycloak-cache - npm Package Compare versions

Comparing version

to
1.5.0

2

package.json
{
"name": "lakehouse-sequelize-restapi-keycloak-cache",
"version": "1.4.0",
"version": "1.5.0",
"description": "caching for all types of data cached on redis hosts/cluster: data from database and sequelize ORM, rest API, keycloak admin api library",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -124,3 +124,3 @@ // this class is to support caching for Class / sequelizeModel Methods:

async findAll(queryOptions) {
let queryOptiontString = CachingUtils.stringifyQueryOptions(queryOptions);
let queryOptiontString = queryOptions ? CachingUtils.stringifyQueryOptions(queryOptions) : '';
let compositeKey = {

@@ -147,3 +147,3 @@ 'hashKey': '',

async findAndCountAll(queryOptions) {
let queryOptiontString = CachingUtils.stringifyQueryOptions(queryOptions);
let queryOptiontString = queryOptions ? CachingUtils.stringifyQueryOptions(queryOptions) : '';

@@ -164,3 +164,3 @@ let compositeKey = {

} else {
let instances = await sequelizeModel.findAll.apply(sequelizeModel, arguments);
let instances = await sequelizeModel.findAndCountAll.apply(sequelizeModel, arguments);
return await CachingUtils.saveHashAll(cacheClient, sequelizeModel, instances, compositeKey);

@@ -187,3 +187,3 @@ }

async findOne(queryOptions) {
let queryOptiontString = CachingUtils.stringifyQueryOptions(queryOptions);
let queryOptiontString = queryOptions ? CachingUtils.stringifyQueryOptions(queryOptions) : '';
let compositeKey = {

@@ -190,0 +190,0 @@ 'hashKey': '',