Vapor Documentation

Enumeration Cache‚ÄčExpiration‚ÄčTime

public enum CacheExpirationTime  

Defines the lifetime of an entry in a cache.

Enumeration Cases

seconds

case seconds(Int) 

minutes

case minutes(Int) 

hours

case hours(Int) 

days

case days(Int) 

Properties

seconds

public var seconds: Int  

Returns the amount of time in seconds.