Vapor Documentation

Structure Application.​Caches

public struct Caches  

Member Of

Application

Core type representing a Vapor application.

Nested Types

Application.Caches.Provider

Properties

application

public let application: Application

memory

public var memory: Cache  

In-memory cache. Thread safe. Not shared between multiple instances of your application.

Methods

use(_:​)

public func use(_ provider: Provider)  

use(_:​)

public func use(_ makeCache: @escaping (Application) -> (Cache))