Skip to content

Instantly share code, notes, and snippets.

@tazzytazzy
tazzytazzy / TCS_FW41.xml
Created January 12, 2024 07:40
JMRI model examples
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2010 All rights reserved -->
<!-- -->
<!-- JMRI is free software; you can redistribute it and/or modify it under -->
<!-- the terms of version 2 of the GNU General Public License as published -->
<!-- by the Free Software Foundation. See the "COPYING" file for a copy -->
<!-- of this license. -->
<!-- -->
<!-- JMRI is distributed in the hope that it will be useful, but WITHOUT -->
// For mediawiki 1.41.0 - includes/libs/redis/RedisConnectionPool.php
/**
* Get a connection to a redis server. Based on code in RedisBagOStuff.php.
*
* @param string $server A hostname/port combination or the absolute path of a UNIX socket.
* If a hostname is specified but no port, port 6379 will be used.
* @param LoggerInterface|null $logger PSR-3 logger instance. [optional]
* @return RedisConnRef|Redis|false Returns false on failure
* @throws InvalidArgumentException
*/