Minor changes to IStore. Added another IStore interface for double keys. Added ChatterStore for chat's voices. Updated respective requests.
This commit is contained in:
@@ -3,10 +3,20 @@ namespace HermesSocketServer.Store
|
||||
public interface IStore<K, V>
|
||||
{
|
||||
V? Get(K key);
|
||||
IEnumerable<V> Get();
|
||||
IDictionary<K, V> Get();
|
||||
Task Load();
|
||||
void Remove(K? key);
|
||||
Task<bool> Save();
|
||||
bool Set(K? key, V? value);
|
||||
}
|
||||
|
||||
public interface IStore<L, R, V>
|
||||
{
|
||||
V? Get(L leftKey, R rightKey);
|
||||
IDictionary<R, V> Get(L leftKey);
|
||||
Task Load();
|
||||
void Remove(L? leftKey, R? rightKey);
|
||||
Task<bool> Save();
|
||||
bool Set(L? leftKey, R? rightKey, V? value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user