Fixed more edge cases

This commit is contained in:
TheXamlGuy
2024-05-21 20:32:42 +01:00
parent 1190303044
commit 83fef5e399
18 changed files with 153 additions and 63 deletions
+7 -2
View File
@@ -7,7 +7,11 @@ public interface ICache<TValue> :
void Clear();
int IndexOf(TValue value);
bool Remove(TValue value);
bool TryGetValue(TValue key, out TValue? value);
}
public interface ICache<TKey, TValue> :
@@ -17,13 +21,14 @@ public interface ICache<TKey, TValue> :
where TValue :
notnull
{
void Add(TKey key,
TValue value);
void Add(TKey key, TValue value);
void Clear();
bool ContainsKey(TKey key);
int IndexOf(TKey key);
bool Remove(TKey key);
bool TryGetValue(TKey key, out TValue? value);