c5375b661b
broke data out into its own library. may be breaking changes with existing plugins
12 lines
345 B
C#
12 lines
345 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Data.Abstractions
|
|
{
|
|
public interface IDataValueCache<T, V> where T : class
|
|
{
|
|
void SetCacheItem(Func<DbSet<T>, Task<V>> itemGetter, string keyName, TimeSpan? expirationTime = null);
|
|
Task<V> GetCacheItem(string keyName);
|
|
}
|
|
} |