mirror of https://github.com/ogoun/Zero.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
812 B
37 lines
812 B
using System;
|
|
|
|
namespace ZeroLevel.Services.Collections
|
|
{
|
|
public interface IEverythingStorage
|
|
{
|
|
#region Generic
|
|
bool TryAdd<T>(string key, T value);
|
|
|
|
bool ContainsKey<T>(string key);
|
|
|
|
bool TryRemove<T>(string key);
|
|
|
|
void Add<T>(string key, T value);
|
|
|
|
void AddOrUpdate<T>(string key, T value);
|
|
|
|
void Remove<T>(string key);
|
|
|
|
T Get<T>(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);
|
|
}
|
|
} |