Redis.php 367 B

123456789101112131415161718192021
  1. <?php
  2. namespace addons\shopro\facade;
  3. use addons\shopro\library\Redis as RedisManager;
  4. /**
  5. * @see RedisManager
  6. *
  7. */
  8. class Redis extends Base
  9. {
  10. public static function getFacadeClass()
  11. {
  12. if (!isset($GLOBALS['SPREDIS'])) {
  13. $GLOBALS['SPREDIS'] = (new RedisManager())->getRedis();
  14. }
  15. return $GLOBALS['SPREDIS'];
  16. }
  17. }