Protocolvapor 4.114.1Vapor
StorageKey
A key used to store values in a Storage
must conform to this protocol.
protocol StorageKey
Browse conforming typesA key used to store values in a Storage
must conform to this protocol.
protocol StorageKey
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 Storage
A container providing arbitrary storage for extensions of an existing type, designed to obviate the problem of being unable to add stored properties to a type in an extension. Each stored item is keyed by a type conforming to StorageKey
protocol.
associatedtype Value : Sendable
The type of the stored value associated with this key type.