hermes-server/Store/IStore.cs

13 lines
294 B
C#
Raw Normal View History

2024-10-17 15:06:22 -04:00
namespace HermesSocketServer.Store
{
public interface IStore<K, V>
{
V? Get(K key);
IDictionary<K, V> Get();
2024-10-17 15:06:22 -04:00
Task Load();
bool Modify(K? key, Action<V> action);
2024-10-17 15:06:22 -04:00
void Remove(K? key);
Task Save();
2024-10-17 15:06:22 -04:00
bool Set(K? key, V? value);
}
}