13 lines
308 B
C#
13 lines
308 B
C#
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace Cloud.Services.Cache
|
||
|
{
|
||
|
public interface IRedisCacheService
|
||
|
{
|
||
|
Task SetCacheAsync<T>(string key, T value, TimeSpan? expiry = null);
|
||
|
Task<T?> GetCacheAsync<T>(string key);
|
||
|
}
|
||
|
}
|