$type $type : string|null 锁类型,如:RedisLock 为null则使用默认锁类型(@currentServer.lock.defaultType) Type string|null
$afterLock $afterLock : callable 当获得锁后执行的回调。该回调返回非 null 则不执行加锁后的方法,本回调的返回值将作为返回值 一般用于防止缓存击穿,获得锁后再做一次检测 如果为{"$this", "methodName"}格式,$this将会被替换为当前类,方法必须为 public 或 protected Type callable