get functions for list and zset generalized