Exemplo n.º 1
0
 /// <summary>
 /// 设置值
 /// </summary>
 /// <param name="cacheService"></param>
 /// <param name="paramters"></param>
 /// <returns></returns>
 protected virtual object SetValueByTimeSpan(ICacheContract cacheService, params object[] paramters)
 {
     return(cacheService.SetByTimeSpan(paramters[0] as string, paramters[1], (long)paramters[2]));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 移除值
 /// </summary>
 /// <param name="cacheService"></param>
 /// <param name="paramters"></param>
 /// <returns></returns>
 protected virtual object RemoveValue(ICacheContract cacheService, params object[] paramters)
 {
     return(cacheService.Remove(paramters[0] as string));
 }
Exemplo n.º 3
0
 /// <summary>
 /// 设置值
 /// </summary>
 /// <param name="cacheService"></param>
 /// <param name="paramters"></param>
 /// <returns></returns>
 protected virtual object SetValue(ICacheContract cacheService, params object[] paramters)
 {
     return(cacheService.Set(paramters[0] as string, paramters[1]));
 }