array( 'type' => 'boolean' ), ); } protected function annotations(): array { return array( 'readonly' => true, 'destructive' => false, 'idempotent' => true, ); } /** * @param array $input Input. * @return array */ protected function run( array $input ) { $connected = Toolbox_Repository::test_object_cache(); return array( 'connected' => $connected, 'message' => $connected ? __( 'Connected to the object cache backend.', 'acrossai-abilities-manager' ) : __( 'Could not connect. Check the host, port and credentials — the site is running without an object cache.', 'acrossai-abilities-manager' ), ); } }