1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- require 'SharedConfigurations.php';
- $client = new Predis\Client($single_server);
- $replies = $client->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);
|