i have one hash named "UserMst" with value [UserName, EMailID, FirstName,lastName etc]
i had stored it like
redis-cli->hmset "UserMst:" + UserID UserName:[UserName], EMailID:[EMail], FirstName[FirstName]
i have one another set "BirthDayMst" which is contain Birth date and its UserID
redis-cli->add BirthdayMst:[Date] UserID
now i want to get current date's user list
so i am trying
redis-cli->sinter BirthDayMst:[date] get UserMst:*->EMailID
but it shows "<empty list or set>"
but if i am trying
redis-cli->sinterstore tmp BirthDayMst:[date]
redis-cli-> sort tmp by nosort get UserMst:*->EMailID
it gives me perfect result..
so what is the mistek
thank you very much for reply... it is working
but i have to get all fields for hash.
therefor i have issued following command
redis-cli> sort BirthDayMst:19550101 by nosort hgetall
but it shows error : "ERR syntax error"
On Monday, August 13, 2012 1:53:33 PM UTC+5:30, Manish wrote:i have one hash named "UserMst" with value [UserName, EMailID, FirstName,lastName etc]
i had stored it like
redis-cli->hmset "UserMst:" + UserID UserName:[UserName], EMailID:[EMail], FirstName[FirstName]i have one another set "BirthDayMst" which is contain Birth date and its UserID
redis-cli->add BirthdayMst:[Date] UserIDnow i want to get current date's user list
so i am trying
redis-cli->sinter BirthDayMst:[date] get UserMst:*->EMailIDbut it shows "<empty list or set>"
but if i am trying
redis-cli->sinterstore tmp BirthDayMst:[date]
redis-cli-> sort tmp by nosort get UserMst:*->EMailID
it gives me perfect result..
so what is the mistek
--To view this discussion on the web visit https://groups.google.com/d/msg/redis-db/-/sfI4Mv06hKEJ.
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.