Skip to content

Commit 7a3af7f

Browse files
Renamed cacheExpiration parameter to expiry for Redis caching
1 parent d8cd988 commit 7a3af7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DotNetToolkit.Repository.Caching.Redis/RedisCache.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ private static T Deserialize<T>(string v)
180180
/// </summary>
181181
/// <param name="key">An object identifying the entry.</param>
182182
/// <param name="value">The value to cache.</param>
183-
/// <param name="cacheExpiration">The cache expiration time.</param>
183+
/// <param name="expiry">The cache expiration time.</param>
184184
/// <param name="cacheRemovedCallback">A callback function for a value is removed from the cache.</param>
185-
public void Set<T>([NotNull] string key, [CanBeNull] T value, [CanBeNull] TimeSpan? cacheExpiration, [CanBeNull] Action<string> cacheRemovedCallback = null)
185+
public void Set<T>([NotNull] string key, [CanBeNull] T value, [CanBeNull] TimeSpan? expiry, [CanBeNull] Action<string> cacheRemovedCallback = null)
186186
{
187187
Guard.NotEmpty(key, nameof(key));
188188

@@ -203,7 +203,7 @@ public void Set<T>([NotNull] string key, [CanBeNull] T value, [CanBeNull] TimeSp
203203
});
204204
}
205205

206-
Redis.StringSet(key, Serialize(value), cacheExpiration);
206+
Redis.StringSet(key, Serialize(value), expiry);
207207
}
208208

209209
/// <summary>

0 commit comments

Comments
 (0)