mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-08-03 02:18:00 +08:00
17 lines
418 B
C#
17 lines
418 B
C#
using NetAdmin.Application.Services;
|
|
|
|
namespace NetAdmin.Cache;
|
|
|
|
/// <summary>
|
|
/// 缓存基类
|
|
/// </summary>
|
|
public abstract class CacheBase<TCacheContainer, TService>(TCacheContainer cache, TService service)
|
|
: ICache<TCacheContainer, TService>
|
|
where TService : IService
|
|
{
|
|
/// <inheritdoc />
|
|
public TCacheContainer Cache => cache;
|
|
|
|
/// <inheritdoc />
|
|
public TService Service => service;
|
|
} |