コード例 #1
0
func SetMembers(redisClient *redis.Client, key string) ([]string, error) {
	var reply *redis.Reply = redisClient.Cmd("SMEMBERS", key)
	return reply.List()
}
コード例 #2
0
func ListItems(redisClient *redis.Client, key string, offset int64, number int64) ([]string, error) {
	var reply *redis.Reply = redisClient.Cmd("LRANGE", key, offset, number)
	return reply.List()
}