Closed saracalihan closed 1 year ago
import { Metronom /* , Model*/ } from 'metronom'; const metronom = new Metronom({ url: "redis://localhost:6380", }); const userModel = metronom.define({}, "users", { flexSchema: true }); let user = await userModel.create({ name: "joe" }); // ...
Now, you can pass RedisClientOptions to one object and create a lot model from it.
RedisClientOptions
Now, you can pass
RedisClientOptions
to one object and create a lot model from it.