A decorator for caching properties in classes. [Peter: Correct license as pointed out by Yegor] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>