public function testDecrementWithScope() { $adapter = new Redis(array('scope' => 'primary')); $this->_redis->set('primary:key1', 1, 60); $this->_redis->set('key1', 1, 60); $adapter->decrement('key1'); $expected = 1; $result = $this->_redis->get('key1'); $this->assertEqual($expected, $result); $expected = 0; $result = $this->_redis->get('primary:key1'); $this->assertEqual($expected, $result); }