c5375b661b
broke data out into its own library. may be breaking changes with existing plugins
15 lines
327 B
C#
15 lines
327 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Data.Abstractions
|
|
{
|
|
public interface ILookupCache<T> where T : class
|
|
{
|
|
Task InitializeAsync();
|
|
Task<T> AddAsync(T item);
|
|
Task<T> FirstAsync(Func<T, bool> query);
|
|
IEnumerable<T> GetAll();
|
|
}
|
|
}
|