2024-10-17 19:06:22 +00:00
|
|
|
namespace HermesSocketServer.Store
|
|
|
|
{
|
|
|
|
public interface IStore<K, V>
|
|
|
|
{
|
|
|
|
V? Get(K key);
|
2024-10-18 03:21:16 +00:00
|
|
|
IDictionary<K, V> Get();
|
2024-10-17 19:06:22 +00:00
|
|
|
Task Load();
|
2024-10-20 18:07:18 +00:00
|
|
|
bool Modify(K? key, Action<V> action);
|
2024-12-31 18:31:21 +00:00
|
|
|
bool Remove(K? key);
|
2024-10-29 12:13:38 +00:00
|
|
|
Task Save();
|
2024-10-17 19:06:22 +00:00
|
|
|
bool Set(K? key, V? value);
|
|
|
|
}
|
|
|
|
}
|