The demo get the MY_TRANSIENT transient (you must set it in your code)
Downlowd es6-wp-ajax-demo and replace es6_ajax_action() in https://github.com/soderlind/es6-wp-ajax-demo/blob/master/es6-wp-ajax-demo.php#L35-L59 with the es6_ajax_action function here.