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

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

问题描述

我在 Heroku 的 RedisToGo 实例中存储了一些信息,我想擦除它以便 Redis 存储干净.知道如何做到这一点吗?

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?

推荐答案

您可以使用 redis-cli 做到这一点.

You can do this with redis-cli.

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

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天全站免登陆