Skip to content

Commit b49193b

Browse files
authored
Update readme with backend information
1 parent 41a2fc5 commit b49193b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func runWorker(ctx context.Context, mb backend.Backend) {
7171

7272
### Backend
7373

74-
The backend is responsible for persisting the workflow events. Currently there is an in-memory backend implementation for testing, one using [SQLite](http://sqlite.org), and one for MySql.
74+
The backend is responsible for persisting the workflow events. Currently there is an in-memory backend implementation for testing, one using [SQLite](http://sqlite.org), one using MySql, and one using Redis.
7575

7676
```go
7777
b := sqlite.NewSqliteBackend("simple.sqlite")
@@ -141,6 +141,15 @@ The Sqlite backend implementation supports two different modes, in-memory and on
141141
b := mysql.NewMysqlBackend("localhost", 3306, "root", "SqlPassw0rd", "simple")
142142
```
143143

144+
#### Redis
145+
146+
```go
147+
b, err := redis.NewRedisBackend("localhost:6379", "user", "RedisPassw0rd", 0)
148+
if err != nil {
149+
panic(err)
150+
}
151+
152+
```
144153

145154
## Guide
146155

0 commit comments

Comments
 (0)