Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections.Generic;
- namespace PersistentStorage
- {
- public interface IPersistentStorage
- {
- IEnumerable<string> Groups { get; }
- IEnumerable<string> KeysForGroup(string group);
- bool ContainsKey(string group, string key);
- T Get<T>(string group, string key, T defaultValue) where T : new();
- string Get(string group, string key, string defaultValue);
- string Get(string group, string key);
- T Get<T>(string group, string key) where T : new();
- IEnumerable<T> GetAll<T>(string group, string key) where T : new();
- IEnumerable<string> GetAll(string group, string key);
- void Set<T>(string group, string key, T value) where T : new();
- void Set(string group, string key, string value);
- void SetAll<T>(string group, string key, IEnumerable<T> value) where T : new();
- void SetAll(string group, string key, IEnumerable<string> value);
- void Delete(string group, string key);
- Dictionary<string, T> GetGroup<T>(string group) where T : new();
- Dictionary<string, string> GetGroup(string group);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement