Sha256: f8c43418afd7c7dc73f3be6ed25bf1f835625c6328187ebdf20f46415cd30cfa
Contents?: true
Size: 420 Bytes
Versions: 2
Compression:
Stored size: 420 Bytes
Contents
# encoding: UTF-8 require File.expand_path("./helper", File.dirname(__FILE__)) require "redis/distributed" setup do log = StringIO.new init Redis::Distributed.new(NODES, :logger => ::Logger.new(log)) end test "SAVE and BGSAVE" do |r| assert_nothing_raised do r.save end assert_nothing_raised do r.bgsave end end test "LASTSAVE" do |r| assert r.lastsave.all? { |t| Time.at(t) <= Time.now } end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
gorsuch-redis-3.0.0.rc1 | test/distributed_persistence_control_commands_test.rb |
redis-3.0.0.rc1 | test/distributed_persistence_control_commands_test.rb |