Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

redis flushall docker

docker exec -it container-name redis-cli FLUSHALL
Comment

redis flushall

const redis = require('redis')
const redisURL = 'redis://${IP ADDRESS}'
let redisClient = redis.createClient(redisURL)
const util = require('util') //standard library contains "promisify" 

redisClient.hget = util.promisify(redisClient.hget); //returns a promise instead of callback

//DELETE ALL DATA FROM REDIS DB 
redisClient.FLUSHALL()
Comment

PREVIOUS NEXT
Code Example
::  
::  
Javascript ::  
::  
::  
Javascript ::  
::  
:: react image onerror 
::  
::  
::  
::  
::  
::  
::  
Javascript ::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
Javascript ::  
::  
::  
::  
::  
ADD CONTENT
Topic
Content
Source link
Name
8+7 =