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.
Zero/ZeroLevel/Services/Collections/IEverythingStorage.cs

40 lines
886 B

6 years ago
using System;
using System.Collections.Generic;
6 years ago
namespace ZeroLevel.Services.Collections
6 years ago
{
public interface IEverythingStorage
{
IEnumerable<string> Keys<T>();
6 years ago
#region Generic
6 years ago
bool TryAdd<T>(string key, T value);
6 years ago
bool ContainsKey<T>(string key);
6 years ago
bool TryRemove<T>(string key);
6 years ago
void Add<T>(string key, T value);
6 years ago
void AddOrUpdate<T>(string key, T value);
6 years ago
void Remove<T>(string key);
6 years ago
T Get<T>(string key);
6 years ago
#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);
6 years ago
}
}

Powered by TurnKey Linux.