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