yep
This commit is contained in:
@@ -16,6 +16,8 @@ func SetValkeyValue(ctx context.Context, client valkey.Client, key, value string
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func GetValkeyValue(ctx context.Context, client valkey.Client, key string) (string, error) {
|
func GetValkeyValue(ctx context.Context, client valkey.Client, key string) (string, error) {
|
||||||
value, err := client.Do(ctx, client.B().Get().Key(key).Build()).ToString()
|
value, err := client.Do(ctx, client.B().Get().Key(key).Build()).ToString()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user