Socket
Book a DemoInstallSign in
Socket

@maxdome/redis-flushall

Package Overview
Dependencies
Maintainers
15
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maxdome/redis-flushall

## The controller

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
1
Maintainers
15
Weekly downloads
 
Created
Source

Usage

The controller

if (process.env.REDIS_FLUSHALL_SECRET) {
  app.post('/debug/redis-flushall', require('@maxdome/redis-flushall').controller({
    redis,
    secret: process.env.REDIS_FLUSHALL_SECRET,
  }));
}

Only the flushall

require('@maxdome/redis-flushall')({ redis });

Swagger

paths:
  /debug/redis-flushall:
    post:
      summary: "Remove all key/value pairs from the redis"
      parameters:
        - name: secret
          description: "Authorization for the flushall"
          in: query
          type: string
      responses:
        204:
          description: "OK"
        403:
          description: "Missing or incorrect secret"
        500:
          description: "Internal Server Error"

FAQs

Package last updated on 07 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts