42 lines
1.6 KiB
PHP
42 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* File: Util_ConfigLabel.php
|
|
*
|
|
* @package W3TC
|
|
*/
|
|
|
|
namespace W3TC;
|
|
|
|
/**
|
|
* Class: Util_ConfigLabel
|
|
*/
|
|
class Util_ConfigLabel {
|
|
/**
|
|
* Undocumented function
|
|
*
|
|
* @param string $key Key name.
|
|
*/
|
|
public static function get( $key ) {
|
|
static $keys = null;
|
|
if ( is_null( $keys ) ) {
|
|
$keys = array(
|
|
'memcached.servers' => __( 'Memcached hostname:port / <acronym title="Internet Protocol">IP</acronym>:port:', 'w3-total-cache' ),
|
|
'memcached.persistent' => __( 'Persistent connection', 'w3-total-cache' ),
|
|
'memcached.username' => __( 'Memcached username:', 'w3-total-cache' ),
|
|
'memcached.password' => __( 'Memcached password:', 'w3-total-cache' ),
|
|
'memcached.binary_protocol' => __( 'Binary protocol', 'w3-total-cache' ),
|
|
'redis.servers' => __( 'Redis hostname:port / <acronym title="Internet Protocol">IP</acronym>:port:', 'w3-total-cache' ),
|
|
'redis.verify_tls_certificates' => __( 'Verify TLS Certificates', 'w3-total-cache' ),
|
|
'redis.persistent' => __( 'Persistent connection', 'w3-total-cache' ),
|
|
'redis.timeout' => __( 'Connection timeout', 'w3-total-cache' ),
|
|
'redis.retry_interval' => __( 'Connection retry interval', 'w3-total-cache' ),
|
|
'redis.read_timeout' => __( 'Connection read timeout', 'w3-total-cache' ),
|
|
'redis.dbid' => __( 'Redis Database ID:', 'w3-total-cache' ),
|
|
'redis.password' => __( 'Redis password:', 'w3-total-cache' ),
|
|
);
|
|
}
|
|
|
|
return $keys[ $key ];
|
|
}
|
|
}
|