View difference between Paste ID: Hygcwy12 and mKfZ8RBV
SHOW: | | - or go back to the newest paste.
1
[root@mastercontrol ~/redis-failover]# cat redtest.php 
2
<?php
3
	require('Redis.php');
4
5
	$redis = new redisent\Redis('redis://vip', '5');
6
	$file = fopen("list.txt", 'w+');
7
	
8
	$i=0;
9
	while(isset($i))
10
	{
11
		$redis->rpush('number', $i);
12
		fwrite($file, "$i\n"); // So we can verify what should have been written
13
		$i++;
14
	}
15
?>