added sorted set functions for redis