Non-Redis cluster servers do nothing to support nor prevent sharding
like you are doing. As such, it does nothing to support cross-shard
set operations. Further, even later when Redis cluster comes out,
Redis cluster will also *not* support cross-machine set operations.
You could explicitly migrate your data between shards with the control
commands, but that will be expensive.
Generally speaking, you can only perform set/zset or sort+by/get on
data that is on the same server. This is by design, and I would wager
is very unlikely to change.
Regards,
- Josiah
On Thu, Jul 19, 2012 at 10:33 AM, Mehdi Mehni
<
mehdi...@viralninjas.com> wrote:
> No I use just 2 Redis servers V2.4.15 (Master-Master) with Predis :
>
> $redis = Predis\Client::create(
> array('host' => '10.0.0.1'),
> array('host' => '10.0.0.2')
> );
>
>
> Sorry about a confusion, I don't use Redis Cluster yet
>
> Le jeudi 19 juillet 2012 13:14:04 UTC-4, Josiah Carlson a écrit :
>>
>> On Thu, Jul 19, 2012 at 8:34 AM, Mehdi Mehni
>> <
mehdi...@viralninjas.com> wrote:
>> > Hi
>> > Can I use sunionstore with cluster server?
>>
>> Yes.
>>
>> > I have 2 redis servers; my first key is stored on server1 and the next
>> > one
>> > on server2. Can I make sunionstore in this case?
>>
>> No.
>>
>> > I use Predis, and I have a error with : Cannot send 'SUNIONSTORE'
>> > commands
>> > to a cluster of connections.
>>
>> Are you using the unreleased Redis Cluster, or are you just using
>> sharding?
>>
>> Regards,
>> - Josiah
>
>
redis-db+u...@googlegroups.com.