Project

General

Profile

1
<?php
2

    
3
/*
4
 * This file is part of the Predis package.
5
 *
6
 * (c) Daniele Alessandri <suppakilla@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

    
12
require 'SharedConfigurations.php';
13

    
14
// simple set and get scenario
15

    
16
$client = new Predis\Client($single_server);
17

    
18
$client->set('library', 'predis');
19
$retval = $client->get('library');
20

    
21
var_dump($retval);
22

    
23
/* OUTPUT
24
string(6) "predis"
25
*/
(16-16/17)