如何擦除Heroku Redis? [英] How to wipe Heroku Redis?

查看:88
本文介绍了如何擦除Heroku Redis?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Heroku的RedisToGo实例中存储了一些信息,我想擦除它,以便Redis存储清洁。任何想法如何做到这一点?

解决方案

您可以使用 redis-cli p>

RedisToGo为您提供以下格式的网址:

  redis:// redistogo:d20739cffb0c0a6fff719acc2728c236@catfish.redistogo.com:9402 

所以这个命令会清空你的db: p>

  redis-cli -h catfish.redistogo.com -p 9402 -a d20739cffb0c0a6fff719acc2728c236 flushall 


I have some information stored in my RedisToGo instance in Heroku and I want to wipe it so the Redis store is clean. Any idea how to do this?

解决方案

You can do this with redis-cli.

RedisToGo gives you a url in the form:

redis://redistogo:d20739cffb0c0a6fff719acc2728c236@catfish.redistogo.com:9402

So this command will empty your db:

redis-cli -h catfish.redistogo.com -p 9402 -a d20739cffb0c0a6fff719acc2728c236 flushall

这篇关于如何擦除Heroku Redis?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆