dnet40/modules/uoa-joomla/trunk/joomla-3.4/predis/lib/Predis/Command/StringSetMultiplePreserve.php @ 36485
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 |
namespace Predis\Command; |
13 |
|
14 |
/**
|
15 |
* @link http://redis.io/commands/msetnx
|
16 |
* @author Daniele Alessandri <suppakilla@gmail.com>
|
17 |
*/
|
18 |
class StringSetMultiplePreserve extends StringSetMultiple |
19 |
{
|
20 |
/**
|
21 |
* {@inheritdoc}
|
22 |
*/
|
23 |
public function getId() |
24 |
{
|
25 |
return 'MSETNX'; |
26 |
}
|
27 |
|
28 |
/**
|
29 |
* {@inheritdoc}
|
30 |
*/
|
31 |
public function parseResponse($data) |
32 |
{
|
33 |
return (bool) $data; |
34 |
}
|
35 |
}
|