Redis allows to set a time to live different for every key so that the key will be automatically removed from the server when it expires.
求解惑,为什么不是to set a different time to live ...
allows后应加the user: allows the user to set...
to set a time to live different for every key
这里set为复合宾语及物动词,a time to live为宾语,different for every key为形容词短语作宾补。不定式短语的意思为:把有效时间设置为每个键各不相同。
如果将different置于time之前也可以,这时set就是单宾语动词:to set a different time to live for every key. 此时,a different time to live是宾语,for every key为set的对象状语。二个结构意义基本相同。
如果觉得我的回答对您有用,请随意打赏。你的支持将鼓励我继续创作!