using System; using System.Collections.Generic; using System.IO; namespace ZeroLevel.Services.Collections { public interface IEverythingStorage { IEnumerable Keys(); #region Generic bool TryAdd(string key, T value); bool ContainsKey(string key); bool TryRemove(string key); void Add(string key, T value); void AddOrUpdate(string key, T value); void Remove(string key); T Get(string key); #endregion bool TryAdd(Type type, string key, object value); bool ContainsKey(Type type, string key); bool TryRemove(Type type, string key); void Add(Type type, string key, object value); void AddOrUpdate(Type type, string key, object value); void Remove(Type type, string key); object Get(Type type, string key); void Save(string path); void Load(string path); void Save(Stream stream); void Load(Stream stream); } }