vapor / fluent

Vapor ORM (queries, models, and relations) for NoSQL and SQL databases
https://docs.vapor.codes/4.0/fluent/overview/
MIT License
1.32k stars 172 forks source link

Add cache protocol #719

Closed tanner0101 closed 3 years ago

tanner0101 commented 3 years ago

Add Fluent implementation for Vapor's new cache protocol: https://github.com/vapor/vapor/pull/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)
tanner0101 commented 3 years ago

These changes are now available in 4.2.0