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

dobi-cache-2

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dobi-cache-2 - npm Package Compare versions

Comparing version 3.0.8 to 3.0.9

8

lib/cacheHelper.js

@@ -55,3 +55,3 @@ /* eslint-disable no-process-env */

async getKeys() {
async getKeys(pattern = '*') {
if (this.isDisabled()) {

@@ -63,3 +63,3 @@ return [];

if (this.method === 'redis') {
keys = await this.redis.keys(`${this.keyPrefix}:*`);
keys = await this.redis.keys(`${this.keyPrefix}:${pattern}`);
} else {

@@ -73,7 +73,7 @@ keys = this.lru.keys();

async flushCache() {
async flushCache(pattern) {
if (this.isDisabled()) {
return 0;
}
const keys = await this.getKeys();
const keys = await this.getKeys(pattern);
const flushed = [];

@@ -80,0 +80,0 @@ const promises = keys.map(async (key) => {

@@ -28,3 +28,3 @@ {

},
"version": "3.0.8",
"version": "3.0.9",
"devDependencies": {

@@ -31,0 +31,0 @@ "eslint": "^5.5.0",

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