Skip to content

Conversation

@aheintz
Copy link
Collaborator

@aheintz aheintz commented Oct 28, 2025

No description provided.

@aheintz aheintz requested a review from a team as a code owner October 28, 2025 13:00
var redisValue = GetRedisValue(k);
if (!redisValue.IsNull)
{
var ttlValue = TTLValue.FromRedisValue<T>(Encoding.ASCII.GetBytes(redisValue.ToString()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a HzActivities.Source.StartActivityWithCommonTags so we can see the time here

var redisBackedValueFactory = new Func<string, Task<T>>(async k =>
{
var redisValue = await GetRedisValueAsync(k).ConfigureAwait(false);
if (!redisValue.IsNull)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a HzActivities.Source.StartActivityWithCommonTags so we can see the time here

}

private Task<RedisValue> GetRedisValueAsync(string key)
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a using var activity = HzActivities.Source.StartActivityWithCommonTags(HzActivities.Names.GetFromRedis, key,async;true);


private RedisValue GetRedisValue(string key)
{
return redisDb.StringGet(GetRedisKey(key));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a using var activity = HzActivities.Source.StartActivityWithCommonTags(HzActivities.Names.GetFromRedis, key,async;false);

@aheintz aheintz merged commit 949efac into main Oct 28, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants