• 缓存生存时间

    缓存生存时间

    更改缓存TTL,只会影响后续的新缓存,不会影响已经存在的缓存。

    headers

    headervaluedescription
    ttlnew TTLsee ttl in nuster rule
    namerule NAMEthe rule to be changed
    proxy NAMEall rules belong to proxy NAME
    *all rules

    Examples

    1. curl -X POST -H "name: r1" -H "ttl: 0" http://127.0.0.1/nuster/cache
    2. curl -X POST -H "name: r2" -H "ttl: 2h" http://127.0.0.1/nuster/cache