mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-04-25 07:32:51 +08:00
16 lines
414 B
C#
16 lines
414 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;
|
|
} |