mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-05-03 19:42:51 +08:00
34 lines
937 B
C#
34 lines
937 B
C#
using NetAdmin.Cache;
|
|
using NetAdmin.SysComponent.Application.Services.Sys.Dependency;
|
|
using NetAdmin.SysComponent.Cache.Sys.Dependency;
|
|
|
|
namespace NetAdmin.SysComponent.Cache.Sys;
|
|
|
|
/// <inheritdoc cref="IConstantCache" />
|
|
public sealed class ConstantCache(IDistributedCache cache, IConstantService service) //
|
|
: DistributedCache<IConstantService>(cache, service), IScoped, IConstantCache
|
|
{
|
|
/// <inheritdoc />
|
|
public IDictionary<string, string> GetCharsDic()
|
|
{
|
|
return Service.GetCharsDic();
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public IDictionary<string, Dictionary<string, string[]>> GetEnums()
|
|
{
|
|
return Service.GetEnums();
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public IDictionary<string, string> GetLocalizedStrings()
|
|
{
|
|
return Service.GetLocalizedStrings();
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public IDictionary<string, long> GetNumbersDic()
|
|
{
|
|
return Service.GetNumbersDic();
|
|
}
|
|
} |