Skip to content

v0.4.0

Latest
Compare
Choose a tag to compare
@calebkleveter calebkleveter released this 09 May 21:41
8b78db1

Subscribe Below

Storage now has subscript methods for accessing it's values should you decide to use the request's private storage instance instead of the .get and .set methods.

Request has .storage method to get it's private storage instance instead of having to fetch it manually.

let storage = try request.storage()
storage[key] // type `Any?`
storage[key] as Type? // type `Type?`
storage[key, as: Type.self] // type `Type?`