getLock() getLock( $name, $ttl = 60) : boolean 得到一个redis锁 Parameters $name string 锁名称 $ttl int 锁存在的时间,单位秒,默认60秒 Returns boolean