Converting list into a set

361 views
Skip to first unread message

Peter Hizalev

unread,
Jan 4, 2011, 8:56:07 PM1/4/11
to Redis DB
Hi,

Is there effective way of converting list into a set?

I have temporary result of SORT to which I want to further apply
SUNION/SINTER.

Thanks!
Peter.

Josiah Carlson

unread,
Jan 5, 2011, 3:47:07 AM1/5/11
to redi...@googlegroups.com
Not at present, no.

 - Josiah


--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.


Peter Hizalev

unread,
Jan 5, 2011, 10:14:34 AM1/5/11
to Redis DB
What I am really missing is the power of GET *-> in SORT command but
without sorting or ordering.

It would be great to have something like:

FOREACH source-key GET *->field STORE result-key

where source-key is either list or set and result-key would be a set.




On Jan 5, 12:47 am, Josiah Carlson <josiah.carl...@gmail.com> wrote:
> Not at present, no.
>
>  - Josiah
>
> On Tue, Jan 4, 2011 at 5:56 PM, Peter Hizalev <peter.hiza...@gmail.com>wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > Is there effective way of converting list into a set?
>
> > I have temporary result of SORT to which I want to further apply
> > SUNION/SINTER.
>
> > Thanks!
> > Peter.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Redis DB" group.
> > To post to this group, send email to redi...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > redis-db+u...@googlegroups.com<redis-db%2Bunsubscribe@googlegroups.c om>
> > .
Reply all
Reply to author
Forward
0 new messages