Add migration command in CLI

This commit is contained in:
Ken Hibino
2021-06-25 06:37:58 -07:00
parent bf54621196
commit 99c7ebeef2
6 changed files with 423 additions and 14 deletions

View File

@@ -32,6 +32,11 @@ func (r *RDB) Close() error {
return r.client.Close()
}
// Client returns the reference to underlying redis client.
func (r *RDB) Client() redis.UniversalClient {
return r.client
}
// Ping checks the connection with redis server.
func (r *RDB) Ping() error {
return r.client.Ping().Err()