Changed the default way to modify values in store. Added basic validation to stores. Using interfaces to DI store objects.
This commit is contained in:
@@ -5,9 +5,10 @@ namespace HermesSocketServer.Store
|
||||
V? Get(K key);
|
||||
IDictionary<K, V> Get();
|
||||
Task Load();
|
||||
bool Modify(K? key, Action<V> action);
|
||||
bool Modify(K? key, Action<V> modify);
|
||||
bool Modify(K? key, V value);
|
||||
bool Remove(K? key);
|
||||
Task Save();
|
||||
bool Set(K? key, V? value);
|
||||
bool Set(K? key, V value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user