public function update_dropin() {

        global $wp_filesystem;

        WP_Filesystem();

        if ( $wp_filesystem->copy( WP_PLUGIN_DIR . '/redis-cache/includes/object-cache.php', WP_CONTENT_DIR . '/object-cache.php', true  )) {
            WP_CLI::success( __( 'Updated object cache drop-in and enabled Redis object cache.', 'redis-cache' ) );
        } else {
            WP_CLI::error( __( 'Object cache drop-in could not be updated.', 'redis-cache' ) );
        }

    }
public function update_dropin() {

        global $wp_filesystem;

        WP_Filesystem();

        if ( $wp_filesystem->copy( WP_PLUGIN_DIR . '/redis-cache/includes/object-cache.php', WP_CONTENT_DIR . '/object-cache.php', true  )) {
            WP_CLI::success( __( 'Updated object cache drop-in and enabled Redis object cache.', 'redis-cache' ) );
        } else {
            WP_CLI::error( __( 'Object cache drop-in could not be updated.', 'redis-cache' ) );
        }

    }
public function update_dropin ( ) { global $ wp_filesystem ; WP_Filesystem ( ) ; if ( $ wp_filesystem -> copy ( WP_PLUGIN_DIR . '/redis-cache/includes/object-cache.php' , WP_CONTENT_DIR . '/object-cache.php' , true ) ) { WP_CLI :: success ( __ ( 'Updated object cache drop-in and enabled Redis object cache.' , 'redis-cache' ) ) ; } else { WP_CLI :: error ( __ ( 'Object cache drop-in could not be updated.' , 'redis-cache' ) ) ; } }
Updates the Redis object cache drop-in.

Default behavior is to overwrite any existing object cache drop-in.

## EXAMPLES

wp redis update-dropin

@subcommand update-dropin
Updates the Redis object cache drop - in .