Fixed up the cache to take a string for connection rather than individual parameters. All tests passing.