public function testReadWithScope() { $adapter = new Redis(array('scope' => 'primary')); $this->_redis->set('primary:key1', 'test1', 60); $this->_redis->set('key1', 'test2', 60); $keys = array('key1'); $expected = array('key1' => 'test1'); $result = $adapter->read($keys); $this->assertEqual($expected, $result); }