How to check the total records size for the key

14 views
Skip to first unread message

sekhar badugu

unread,
Jun 10, 2016, 4:00:54 AM6/10/16
to Redis DB
Hi ,

i have pushed some records into the redis as shown below.

LPUSH feed "2016-01-01T00:05:00+0000, 2016-01-01T00:05:00+0000, 681.91, 2016-01-01T00:05:00+0000, 53.97, 2016-01-01T00:05:00+0000, 51.12"
LPUSH feed "2016-01-01T00:10:00+0000, 2016-01-01T00:10:00+0000, 605.82, 2016-01-01T00:10:00+0000, 69.24, 2016-01-01T00:10:00+0000, 64.74"
LPUSH feed "2016-01-01T00:15:00+0000, 2016-01-01T00:15:00+0000, 703.14, 2016-01-01T00:15:00+0000, 66.78, 2016-01-01T00:15:00+0000, 51.66"
LPUSH feed "2016-01-01T00:20:00+0000, 2016-01-01T00:20:00+0000, 745.74, 2016-01-01T00:20:00+0000, 62.91, 2016-01-01T00:20:00+0000, 59.72"
LPUSH feed "2016-01-01T00:25:00+0000, 2016-01-01T00:25:00+0000, 709.92, 2016-01-01T00:25:00+0000, 62.84, 2016-01-01T00:25:00+0000, 52.75"


i can see the count as 5 after pushing immediately in the console. But i want to check the size later point of time that how many records are in the queue.

Please let me know the command for it.

Thanks
Sekhar 

Jan-Erik Rediger

unread,
Jun 10, 2016, 4:21:17 AM6/10/16
to redi...@googlegroups.com
LLEN: http://redis.io/commands/llen
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
> To post to this group, send email to redi...@googlegroups.com.
> Visit this group at https://groups.google.com/group/redis-db.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages