ajax call to a function using get_transient

Do you have or can you point me to an example of an ajax function call passing 2 integer parameters to a function that uses get_transient to retrieve a string that is passed back and appended to a previous string?

Thanks,