Add cache protocol
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)