1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- require_once 'SharedConfigurations.php';
- $redis = new Predis\Client($single_server);
- $replies = $redis->pipeline(function($pipe) {
- $pipe->ping();
- $pipe->flushdb();
- $pipe->incrby('counter', 10);
- $pipe->incrby('counter', 30);
- $pipe->exists('counter');
- $pipe->get('counter');
- $pipe->mget('does_not_exist', 'counter');
- });
- print_r($replies);
- ?>
|