diff --git a/export/database.go b/export/database.go index 3841499..6789c17 100644 --- a/export/database.go +++ b/export/database.go @@ -418,6 +418,7 @@ func DBData(data *data.Data) { serviceDeliveryJsonObject["Updates"] = updateCount serviceDeliveryJsonObject["EstimatedCallInserts"] = estimatedCallInsertCount serviceDeliveryJsonObject["EstimatedCallUpdates"] = estimatedCallUpdateCount + serviceDeliveryJsonObject["EstimatedCallNone"] = estimatedCallNoneCount serviceDeliveryJsonObject["RecordedCallInserts"] = recordedCallInsertCount serviceDeliveryJsonObject["RecordedCallUpdates"] = recordedCallUpdateCount diff --git a/valki/commands.go b/valki/commands.go index 3195fc4..a17746f 100644 --- a/valki/commands.go +++ b/valki/commands.go @@ -3,12 +3,13 @@ package valki import ( "context" "fmt" + "time" "github.com/valkey-io/valkey-go" ) func SetValkeyValue(ctx context.Context, client valkey.Client, key, value string) error { - err := client.Do(ctx, client.B().Set().Key(key).Value(value).Build()).Error() + err := client.Do(ctx, client.B().Set().Key(key).Value(value).Ex(time.Hour).Build()).Error() if err != nil { return fmt.Errorf("failed to set value in Valkey: %v", err) }