public static function register($prepend = false) { spl_autoload_register(array(new self(), 'autoload'), true, $prepend); }
static function init() { Autoloader::register(); $serversObj = config("rediscluster"); $servers = $serversObj->all(); $options = ['cluster' => 'redis']; return new Client($servers, $options); }