Skip to content

jetcache如何获取一个值的ttl呢 #984

@qewsd

Description

@qewsd

有个需求,即10分钟内请求10次即触发,因为jetcache每次put时都会重置过期时间,因此想put时先获取ttl然后再设置,但是发现getHolder方法是protected无法优雅的获取,请问有什么方式能获取到ttl呢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions