Kitura-Session store using Swift-Kuery as the backing store
Kitura-Session store using Swift-Kuery as the backing store
The latest version of Kitura-Session-Kuery requires Swift 4.0.3. You can download this version of the Swift binaries by following this link. Compatibility with other Swift versions is not guaranteed.
In order to use Kuery as session store, create an instance of KueryStore
, and pass it to Session
constructor:
import KituraSession
import KituraSessionKuery
let pool = ...
guard let connection = pool.getConnection() else {
// Error
}
let kueryStore = KueryStore(connection: kueryConnection)
let session = Session(secret: <secret>, store: kueryStore)
This library is licensed under MIT. Full license text is available in LICENSE.