Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@mastercontrol ~/redis-failover]# cat redtest.php
- <?php
- require('Redis.php');
- $redis = new redisent\Redis('redis://vip', '5');
- $file = fopen("list.txt", 'w+');
- $i=0;
- while(isset($i))
- {
- $redis->rpush('number', $i);
- fwrite($file, "$i\n"); // So we can verify what should have been written
- $i++;
- }
- ?>
Add Comment
Please, Sign In to add comment