hermes-server/Store/IStore.cs
2024-10-17 21:17:09 +00:00

12 lines
250 B
C#

namespace HermesSocketServer.Store
{
public interface IStore<K, V>
{
V? Get(K key);
IEnumerable<V> Get();
Task Load();
void Remove(K? key);
Task<bool> Save();
bool Set(K? key, V? value);
}
}