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

Commit b26f070

Browse files
committed
Add RemoveExpiredEntries
1 parent 1436916 commit b26f070

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/ServiceStack.Redis/RedisClient.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,11 @@ public bool ExpireEntryAt(string key, DateTime expireAt)
369369
return TimeSpan.FromSeconds(ttlSecs);
370370
}
371371

372+
public void RemoveExpiredEntries()
373+
{
374+
//Redis automatically removed expired Cache Entries
375+
}
376+
372377
public IRedisTypedClient<T> As<T>()
373378
{
374379
try

src/ServiceStack.Redis/RedisClientManagerCacheClient.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,5 +218,10 @@ public IEnumerable<string> GetKeysByPattern(string pattern)
218218
return client.GetKeysByPattern(pattern).ToList();
219219
}
220220
}
221+
222+
public void RemoveExpiredEntries()
223+
{
224+
//Redis automatically removed expired Cache Entries
225+
}
221226
}
222227
}

0 commit comments

Comments
 (0)