HEX
Server: Apache/2.4.34 (Red Hat) OpenSSL/1.0.2k-fips
System: Linux WORDPRESS 3.10.0-1160.118.1.el7.x86_64 #1 SMP Thu Apr 4 03:33:23 EDT 2024 x86_64
User: digital (1020)
PHP: 7.2.24
Disabled: NONE
Upload Files
File: /datos/www/fabricas.colombiatrade.com.co/web_https/modules/contrib/redis/redis.module
<?php

/**
 * @file
 * Redis module.
 *
 * This file is a placeholder for other modules that need the Redis client for
 * something else than lock and cache.
 */

use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\redis\ClientFactory;

/**
 * Implements hook_help().
 */
function redis_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.redis':
      if (ClientFactory::hasClient()) {
        $messages = '<p><strong>' . t("Current connected client uses the <em>@name</em> library.", ['@name' => ClientFactory::getClientName()]) . '</strong></p>';
      }
      else {
        $messages = '<p><strong>' . t('No redis connection configured.') . '</strong></p>';
      }
      return $messages;
  }
}