The space of invariant functions on a finite Lie algebra