Skip to content

Caffeine spec time duration format #466

@asarkar

Description

@asarkar
  1. I couldn't find the format for setting expireAfterAccess in the Wiki. I initially used P7D, which failed, and the stacktrace led me to CaffeineSpec. parseTimeUnit. Ideally, not every new user would have to go through the source code, and it'd be documented under Eviction.
  2. ISO-8601 datetime format is almost ubiquitous in modern Java code, especially if using Spring (hence my initial attempt with P7D). It'd be nice to have support for this in Caffeine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions