Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redisess

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redisess - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

22

lib/SessionManager.js

@@ -247,2 +247,18 @@ const crypto = require('crypto');

/**
* Retrieves oldest session of user
*
* @param {string} userId
* @param {boolean} [noUpdate=false]
* @return {Promise<Session>}
*/
getOldestUserSession(userId, noUpdate) {
if (!userId)
return Promise.reject(new ArgumentError('You must provide userId'));
return this._getClient().then(client => {
return client.zrevrange(this._ns + ':user_' + userId, '-1', '-1').then(
sessionId => this.get(sessionId, noUpdate));
});
}
/**
* Returns true if sessionId exists, false otherwise,

@@ -296,3 +312,3 @@ *

return this._getClient().then(client =>
killAllScript.execute(client, this._ns + ':*').then(() => true)
killAllScript.execute(client, this._ns + ':*').then(() => true)
);

@@ -337,3 +353,3 @@ }

setTimeout(() => {
this._wipe().catch(/* istanbul ignore next */() => 1)
this._wipe().catch(/* istanbul ignore next */() => 1);
}, this._wipeInterval)

@@ -350,3 +366,3 @@ .unref();

return this._getClient().then(client =>
wipeScript.execute(client, this._ns, this._now())
wipeScript.execute(client, this._ns, this._now())
);

@@ -353,0 +369,0 @@ }

2

package.json
{
"name": "redisess",
"description": "Powerful redis session manager for NodeJS",
"version": "0.6.0",
"version": "0.7.0",
"author": "Panates Ltd.",

@@ -6,0 +6,0 @@ "contributors": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc