hermes-server/Store/IStore.cs

12 lines
253 B
C#

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