coolexp / redis

Automatically exported from code.google.com/p/redis
0 stars 0 forks source link

[Patch] Support for fixed-size lists #43

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Here's a simple patch to support fixed-size lists. It adds two new commands 
(variants of LPUSH and RPUSH) :

CLPUSH <max size> <key> <value>

If the list has already at least <max size> items, drop the last (tail) item of 
the 
list before appending the newcomer to the head of the list.

CRPUSH <max size> <key> <value>

If the list has already at least <max_size> items, drop the first (head) item 
of 
the list before appending the newcomer to the tail of the list.

Original issue reported on code.google.com by goo...@pureftpd.org on 23 Jun 2009 at 1:48

GoogleCodeExporter commented 8 years ago

Original comment by goo...@pureftpd.org on 23 Jun 2009 at 1:52

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Patch for the CPP client.

Original comment by goo...@pureftpd.org on 30 Jun 2009 at 10:59

Attachments:

GoogleCodeExporter commented 8 years ago
Excellent idea.  I have an immediate use for this feature. :-)

Original comment by jzaw...@gmail.com on 2 Sep 2009 at 4:50

GoogleCodeExporter commented 8 years ago
Hello, currently there are no plans to add this feature. Thanks.

Original comment by anti...@gmail.com on 23 Oct 2009 at 12:44