Cache interface in Python, deferred evaluation with lambdas, can be plugged into e.g. redis