コード例 #1
0
 /// <summary>
 /// 在列表头部插入值。如果键不存在,先创建再插入值
 /// </summary>
 /// <param name="redisKey"></param>
 /// <param name="redisValue"></param>
 /// <returns></returns>
 public async Task <long> ListLeftPushAsync(string redisKey, string redisValue)
 {
     redisKey = GetKeyForRedis(redisKey);
     return(await _database.ListLeftPushAsync(redisKey, redisValue));
 }