Closest thing to an answer I have found however this means that I have to pass in the type rather than be able to access it through the dictionary as I was wanting above:
public void GetAndStoreIntKey<T>(string tableName) where T : IHasId<int>
{
var dbCon = dbConnectionFactory.OpenDbConnection();
String sql = "USE ibet SELECT * FROM " + tableName;
var items = dbCon.SqlList<T>(sql);
var typedRedisClient = redis.As<T>();
foreach (T item in items)
{
typedRedisClient.SetEntry(UrnId.CreateWithParts<T>(new string[] {item.Id + ""}), item);
}
}
Usage like :
GetAndStoreIntKey<Sport>("Sport");