'Version' ] ); define( 'WP_REDIS_VERSION', $meta['Version'] ); require_once WP_REDIS_PLUGIN_PATH . '/includes/class-autoloader.php'; $autoloader = new Rhubarb\RedisCache\Autoloader(); $autoloader->register(); $autoloader->add_namespace( 'Rhubarb\RedisCache', WP_REDIS_PLUGIN_PATH . '/includes' ); if ( defined( 'WP_CLI' ) && WP_CLI && ! defined( 'RedisCachePro\Version' ) && ! defined( 'ObjectCachePro\Version' ) ) { add_action( 'plugins_loaded', function () { WP_CLI::add_command( 'redis', Rhubarb\RedisCache\CLI\Commands::class ); } ); } register_activation_hook( WP_REDIS_FILE, [ Rhubarb\RedisCache\Plugin::class, 'on_activation' ] ); Rhubarb\RedisCache\Plugin::instance(); if ( ! function_exists( 'redis_object_cache' ) ) { /** * Returns the plugin instance. * * @return Rhubarb\RedisCache\Plugin */ function redis_object_cache() { return Rhubarb\RedisCache\Plugin::instance(); } }