Files
2025-06-24 14:14:35 +02:00

43 lines
1.7 KiB
PHP

<?php
/**
* Redis Cache
* Version: 2.1.1
* Copyright (c) 2020-2022. Mateusz Szymański Teamwant
* https://teamwant.pl
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
*
* @author Teamwant <kontakt@teamwant.pl>
* @copyright Copyright 2020-2023 © Teamwant Mateusz Szymański All right reserved
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* @category Teamwant
* @package Teamwant
*/
require_once(TEAMWANT_REDIS_ROOT_DIR . '/classes/TeamwantRedis.php');
if (version_compare(_PS_VERSION_, '1.7.0.0', '>=') === true
&& version_compare(_PS_VERSION_, '1.7.3.0', '<') === true
) {
require_once(TEAMWANT_REDIS_ROOT_DIR . '/classes/versions/TeamwantRedisFor1700.php');
} elseif (version_compare(_PS_VERSION_, '1.7.3.0', '>=') === true
&& version_compare(_PS_VERSION_, '1.7.7.0', '<') === true
) {
require_once(TEAMWANT_REDIS_ROOT_DIR . '/classes/versions/TeamwantRedisFor1760.php');
} elseif (version_compare(_PS_VERSION_, '1.7.7.0', '>=') === true
&& version_compare(_PS_VERSION_, '1.7.8.0', '<') === true
) {
require_once(TEAMWANT_REDIS_ROOT_DIR . '/classes/versions/TeamwantRedisFor1770.php');
} elseif (version_compare(_PS_VERSION_, '1.7.8.0', '>=') === true
&& version_compare(_PS_VERSION_, '1.7.9.9', '<=') === true
) {
require_once(TEAMWANT_REDIS_ROOT_DIR . '/classes/versions/TeamwantRedisFor1780.php');
} else {
require_once(TEAMWANT_REDIS_ROOT_DIR . '/classes/versions/TeamwantRedisFor800.php');
}