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

Commit b58dd1c

Browse files
committed
Fix SetValueAsync/StoreAsync expireIn APIs
1 parent c064406 commit b58dd1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceStack.Redis/Generic/RedisTypedClient.Async.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ static void AssertNotNull(object obj, string name = "key")
200200
async ValueTask IRedisTypedClientAsync<T>.SetValueAsync(string key, T entity, TimeSpan expireIn, CancellationToken token)
201201
{
202202
AssertNotNull(key);
203-
await AsyncClient.SetAsync(key, SerializeValue(entity), token).ConfigureAwait(false);
203+
await AsyncClient.SetAsync(key, SerializeValue(entity), expireIn, token).ConfigureAwait(false);
204204
await client.RegisterTypeIdAsync(entity, token).ConfigureAwait(false);
205205
}
206206

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

0 commit comments

Comments
 (0)