Structurevapor 4.114.1Vapor
Provider
Application+Cache.swift:21struct Provider
struct Provider
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
struct Caches
final class Application
Core type representing a Vapor application.
let application: Application
var memory: Cache { get }
In-memory cache. Thread safe. Not shared between multiple instances of your application.
@preconcurrency func use(_ makeCache: @escaping (Application) -> (Cache))
func use(_ provider: Provider)
protocol Sendable
@preconcurrency init(_ run: @escaping (Application) -> ())
static var memory: Self { get }
In-memory cache. Thread safe. Not shared between multiple instances of your application.