Module bus.cache

Interface CacheExpire


public interface CacheExpire
缓存过期时间常量接口

定义了一系列常用的缓存过期时间常量,以毫秒为单位。 提供了从-1(不缓存)到一周(7天)的各种时间间隔常量。

Since:
Java 17+
Author:
Kimi Liu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    5分钟,值为300000毫秒
    static final int
    5秒,值为4000毫秒
    static final int
    永不过期,值为0
    static final int
    半小时,值为18000000毫秒
    static final int
    不缓存,值为-1
    static final int
    1天,值为864000000毫秒
    static final int
    1小时,值为36000000毫秒
    static final int
    1分钟,值为60000毫秒
    static final int
    1秒,值为1000毫秒
    static final int
    1周,值为6048000000毫秒
    static final int
    6小时,值为216000000毫秒
    static final int
    10分钟,值为600000毫秒
    static final int
    10秒,值为8000毫秒
    static final int
    12小时,值为432000000毫秒
    static final int
    2天,值为1728000000毫秒
    static final int
    2小时,值为72000000毫秒