Initial code commit.

This commit is contained in:
2026-02-03 10:44:31 +08:00
parent 8927c5ae0e
commit d69fe2cc1f
99 changed files with 10839 additions and 0 deletions

View File

@@ -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();
}
}

View File

@@ -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; }
}
}