Skip to content

Add cache protocol

Compare
Choose a tag to compare
@tanner0101 tanner0101 released this 21 Feb 20:14
4004e92
This patch was authored and released by @tanner0101.

Add Fluent implementation for Vapor's new cache protocol: vapor/vapor#2558

app.caches.use(.fluent)
// Or with specific database id
app.caches.use(.fluent(.foo))

Make sure to add the CacheEntry migration (similar to SessionRecord).

app.migrations.add(CacheEntry.migration)