Skip to content

Commit

Permalink
📦 updates HDK for v0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
k33g committed Aug 11, 2023
1 parent 07d8f90 commit e7f2944
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ tasks:
- git commit -m "📦 updates HDK for ${TAG}"
- git tag ${TAG}
- git push origin main ${TAG}

remove-tag:
env:
TAG: "v0.0.7"
cmds:
- git tag -d ${TAG}
3 changes: 3 additions & 0 deletions hostfunc.redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ var redisGet = api.GoModuleFunc(func(ctx context.Context, module api.Module, par
var resultFromHost []byte

// start the host work
InitRedisClient()
result, err := getRedisClient().Get(ctx, string(bufferKey)).Result()
if err != nil {
resultFromHost = failure([]byte(err.Error()))
Expand Down Expand Up @@ -207,6 +208,7 @@ var redisDel = api.GoModuleFunc(func(ctx context.Context, module api.Module, par
var resultFromHost []byte

// start the host work
InitRedisClient()
_, err = getRedisClient().Del(ctx, string(bufferKey)).Result()
if err != nil {
resultFromHost = failure([]byte(err.Error()))
Expand Down Expand Up @@ -264,6 +266,7 @@ var redisKeys = api.GoModuleFunc(func(ctx context.Context, module api.Module, pa
var keysMap = make(map[string][]string)

// call the redis KEYS command
InitRedisClient()
keys, err := getRedisClient().Keys(ctx, string(bufferFilter)).Result()
if err != nil {
resultFromHost = failure([]byte(err.Error()))
Expand Down

0 comments on commit e7f2944

Please sign in to comment.