Initial code commit.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
namespace Sufi.Demo.PeopleDirectory.Application.Contracts.Services
|
||||
{
|
||||
public interface IAppCache
|
||||
{
|
||||
ValueTask<T> GetOrAddAsync<T>(string key, Func<CancellationToken, ValueTask<T>> factory,
|
||||
IEnumerable<string>? tags = null, TimeSpan? absoluteExpireTime = null);
|
||||
ValueTask RemoveAsync(string key);
|
||||
ValueTask RemoveByTagAsync(string tag);
|
||||
ValueTask ResetAsync();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Sufi.Demo.PeopleDirectory.Application.Contracts.Common;
|
||||
|
||||
namespace Sufi.Demo.PeopleDirectory.Application.Contracts.Services
|
||||
{
|
||||
public interface ICurrentUserService : IService
|
||||
{
|
||||
string? UserId { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user