<commit_before><?php namespace GM\ATP\Cache;

class TransientHandler implements HandlerInterface {

    public function clear( $key ) {
        return delete_transient( $key );
    }

    public function get( $key ) {
        return get_transient( $key ) ? : FALSE;
    }

    public function set( $key, $value, $expiration ) {
        return set_transient( $key, $value, $expiration );
    }

    public function isAvailable() {
        return wp_using_ext_object_cache();
    }

}<commit_msg>Allow forcing transient as cache handler<commit_after><?php namespace GM\ATP\Cache;

class TransientHandler implements HandlerInterface {

    public function clear( $key ) {
        return delete_transient( $key );
    }

    public function get( $key ) {
        return get_transient( $key ) ? : FALSE;
    }

    public function set( $key, $value, $expiration ) {
        return set_transient( $key, $value, $expiration );
    }

    public function isAvailable() {
        return apply_filters( 'ajax_template_force_transient', wp_using_ext_object_cache() );
    }

}
{'fraction_non_alphanumeric': 0.10610328638497653, 'fraction_numerical': 0.0, 'mean_word_length': 3.053231939163498, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4487965', 'n_tokens_mistral': 320, 'n_tokens_neox': 307, 'n_words': 83}