OptionalkeyOptionalmaxMaximum number of cached entries. When the limit is exceeded, the least recently used entry is evicted (LRU). Cache hits refresh the recency order. 缓存条目最大数量。超出上限时淘汰最久未使用的条目(LRU);命中会刷新使用顺序
OptionalttlTime-to-live in milliseconds. If set, cache expires after this duration. 缓存有效期(毫秒)。设置后缓存将在此时间后过期
Custom key resolver. By default, a fast key is generated for a single
number/string/booleanargument, and other arguments are serialized via JSON. 自定义 key 生成器。默认情况下,单个number/string/boolean参数生成快速 key,其余参数使用 JSON 序列化