Skip to content

Commit b9c1975

Browse files
committed
chore: Read history log
Signed-off-by: Javier Aliaga <[email protected]>
1 parent ecfd5c8 commit b9c1975

File tree

7 files changed

+68
-0
lines changed

7 files changed

+68
-0
lines changed

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/javi-durabletask-protobuf.iml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module dapr.io/wlog
2+
3+
go 1.24.2
4+
5+
require (
6+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
7+
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
8+
github.com/redis/go-redis/v9 v9.9.0 // indirect
9+
)

go.sum

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
2+
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
3+
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78=
4+
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc=
5+
github.com/redis/go-redis/v9 v9.9.0 h1:URbPQ4xVQSQhZ27WMQVmZSo3uT3pL+4IdHVcYq2nVfM=
6+
github.com/redis/go-redis/v9 v9.9.0/go.mod h1:huWgSWd8mW6+m0VPhJjSSQ+d6Nh1VICQ6Q5lHuCH/Iw=

main.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package main
2+
3+
import (
4+
"context"
5+
"fmt"
6+
"github.com/redis/go-redis/v9"
7+
)
8+
9+
func main() {
10+
rdb := redis.NewClient(&redis.Options{
11+
Addr: "localhost:6379",
12+
Password: "", // no password set
13+
DB: 0, // use default DB
14+
})
15+
16+
ctx := context.Background()
17+
val, err := rdb.HGet(ctx, "helloworldworkflow-app||dapr.internal.dapr-tests.helloworldworkflow-app.workflow||51d33015-7f97-4208-b2ed-19338e591aef||history-000005", "data").Result()
18+
if err != nil {
19+
panic(err)
20+
}
21+
fmt.Println("key", val)
22+
}

0 commit comments

Comments
 (0)