added lcache to cache things in redis. implements CHI's compute method