Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.

Commit

Permalink
Fix SetValueAsync/StoreAsync expireIn APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Mar 3, 2021
1 parent c064406 commit b58dd1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ServiceStack.Redis/Generic/RedisTypedClient.Async.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ static void AssertNotNull(object obj, string name = "key")
async ValueTask IRedisTypedClientAsync<T>.SetValueAsync(string key, T entity, TimeSpan expireIn, CancellationToken token)
{
AssertNotNull(key);
await AsyncClient.SetAsync(key, SerializeValue(entity), token).ConfigureAwait(false);
await AsyncClient.SetAsync(key, SerializeValue(entity), expireIn, token).ConfigureAwait(false);
await client.RegisterTypeIdAsync(entity, token).ConfigureAwait(false);
}

Expand All @@ -221,7 +221,7 @@ async ValueTask<bool> IRedisTypedClientAsync<T>.SetValueIfExistsAsync(string key
async ValueTask<T> IRedisTypedClientAsync<T>.StoreAsync(T entity, TimeSpan expireIn, CancellationToken token)
{
var urnKey = client.UrnKey(entity);
await AsAsync().SetValueAsync(urnKey, entity, token).ConfigureAwait(false);
await AsAsync().SetValueAsync(urnKey, entity, expireIn, token).ConfigureAwait(false);
return entity;
}

Expand Down

0 comments on commit b58dd1c

Please sign in to comment.