UserCacheStorage
struct UserCacheStorage
This is the datatype that gets stored in UserCacheStorage. Vapor’s Services API uses this.
-
Declaration
Swift
var usersByID: [UUID : UserCacheData]
-
Declaration
Swift
var usersByName: [String : UserCacheData]
-
Declaration
Swift
var usersByToken: [String : UserCacheData]
-
Declaration
Swift
mutating func cacheUser(_ data: UserCacheData)