This commit is contained in:
pigwin-3
2025-08-15 16:12:43 +02:00
parent 8b56bf8370
commit 497b5a6e86

View File

@@ -16,6 +16,8 @@ func SetValkeyValue(ctx context.Context, client valkey.Client, key, value string
return nil
}
func GetValkeyValue(ctx context.Context, client valkey.Client, key string) (string, error) {
value, err := client.Do(ctx, client.B().Get().Key(key).Build()).ToString()
if err != nil {