public static function getInstatnce() { if (self::$instance === null) { self::$instance = new RedisFactory(); } return self::$instance; }