【问题标题】:How to clear Redis Database in test environment with fakeredis?如何使用 fakeredis 清除测试环境中的 Redis 数据库?
【发布时间】:2012-09-17 21:00:00
【问题描述】:

我想清除每个规范的 Redis 数据库。

【问题讨论】:

    标签: ruby-on-rails ruby-on-rails-3 rspec redis


    【解决方案1】:

    flushdb 清除当前数据库,flushall 清除所有数据库。

    flushdb definition

    【讨论】:

      猜你喜欢
      • 2021-05-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-09
      • 2011-08-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多