123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- require_once 'SharedConfigurations.php';
- $redis = new Predis\Client(REDIS_HOST, REDIS_PORT);
- $redis->select(REDIS_DB);
- $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);
- ?>
|