Ok testing message queue su redis!!!
This commit is contained in:
+12
-12
@@ -920,9 +920,9 @@ namespace SteamWare.IO
|
||||
/// </summary>
|
||||
/// <param name="stackName"></param>
|
||||
/// <returns></returns>
|
||||
public long StackLen(RedisKey stackName)
|
||||
public long StackLen(string stackName)
|
||||
{
|
||||
return connRedis.GetDatabase().ListLength(stackName);
|
||||
return connRedis.GetDatabase().ListLength((RedisKey)stackName);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -930,9 +930,9 @@ namespace SteamWare.IO
|
||||
/// </summary>
|
||||
/// <param name="stackName"></param>
|
||||
/// <param name="value"></param>
|
||||
public void StackPush(RedisKey stackName, RedisValue value)
|
||||
public void StackPush(string stackName, string value)
|
||||
{
|
||||
connRedis.GetDatabase().ListRightPush(stackName, value);
|
||||
connRedis.GetDatabase().ListRightPush((RedisKey)stackName, (RedisValue)value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -940,9 +940,9 @@ namespace SteamWare.IO
|
||||
/// </summary>
|
||||
/// <param name="stackName"></param>
|
||||
/// <returns></returns>
|
||||
public RedisValue StackPop(RedisKey stackName)
|
||||
public string StackPop(string stackName)
|
||||
{
|
||||
return connRedis.GetDatabase().ListRightPop(stackName);
|
||||
return connRedis.GetDatabase().ListRightPop((RedisKey)stackName).ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -950,9 +950,9 @@ namespace SteamWare.IO
|
||||
/// </summary>
|
||||
/// <param name="queueName"></param>
|
||||
/// <returns></returns>
|
||||
public long ListLen(RedisKey queueName)
|
||||
public long ListLen(string queueName)
|
||||
{
|
||||
return connRedis.GetDatabase().ListLength(queueName);
|
||||
return connRedis.GetDatabase().ListLength((RedisKey)queueName);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -960,9 +960,9 @@ namespace SteamWare.IO
|
||||
/// </summary>
|
||||
/// <param name="queueName"></param>
|
||||
/// <returns></returns>
|
||||
public void ListPush(RedisKey queueName, RedisValue value)
|
||||
public void ListPush(string queueName, string value)
|
||||
{
|
||||
connRedis.GetDatabase().ListRightPush(queueName, value);
|
||||
connRedis.GetDatabase().ListRightPush((RedisKey)queueName, (RedisValue)value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -970,9 +970,9 @@ namespace SteamWare.IO
|
||||
/// </summary>
|
||||
/// <param name="queueName"></param>
|
||||
/// <returns></returns>
|
||||
public RedisValue ListPop(RedisKey queueName)
|
||||
public string ListPop(string queueName)
|
||||
{
|
||||
return connRedis.GetDatabase().ListLeftPop(queueName);
|
||||
return connRedis.GetDatabase().ListLeftPop((RedisKey)queueName).ToString();
|
||||
}
|
||||
|
||||
#endregion gestione Stack / List
|
||||
|
||||
Reference in New Issue
Block a user