typo refresh
This commit is contained in:
+18
-12
@@ -1,11 +1,10 @@
|
||||
using Newtonsoft.Json;
|
||||
using StackExchange.Redis;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Web;
|
||||
using System.Web.Configuration;
|
||||
using StackExchange.Redis;
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
@@ -629,7 +628,7 @@ namespace SteamWare
|
||||
{
|
||||
if (HttpContext.Current.Session[nomeVar] != null)
|
||||
{
|
||||
return (long)Convert.ToInt32(HttpContext.Current.Session[nomeVar].ToString());
|
||||
return Convert.ToInt32(HttpContext.Current.Session[nomeVar].ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -646,7 +645,7 @@ namespace SteamWare
|
||||
{
|
||||
if (HttpContext.Current.Session[nomeVar] != null)
|
||||
{
|
||||
return (int)Convert.ToInt32(HttpContext.Current.Session[nomeVar].ToString());
|
||||
return Convert.ToInt32(HttpContext.Current.Session[nomeVar].ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1033,7 +1032,7 @@ namespace SteamWare
|
||||
// cerco di fare cast a stringa...
|
||||
try
|
||||
{
|
||||
stringAnsw = (string)HttpContext.Current.Cache[nomeVar].ToString() != "";
|
||||
stringAnsw = HttpContext.Current.Cache[nomeVar].ToString() != "";
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
@@ -1425,11 +1424,12 @@ namespace SteamWare
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
} /// <summary>
|
||||
/// Verifica se ci siano valori nella hash indicata (string)
|
||||
/// </summary>
|
||||
/// <param name="key"></param>
|
||||
/// <returns></returns>
|
||||
}
|
||||
/// <summary>
|
||||
/// Verifica se ci siano valori nella hash indicata (string)
|
||||
/// </summary>
|
||||
/// <param name="key"></param>
|
||||
/// <returns></returns>
|
||||
public bool redHashPresentSz(string key)
|
||||
{
|
||||
bool answ = false;
|
||||
@@ -1585,7 +1585,10 @@ namespace SteamWare
|
||||
{
|
||||
RedisKey chiave = hashKey;
|
||||
answ = redSaveHash(hashKey, hashFields);
|
||||
if (expireSeconds > 0) cache.KeyExpire(chiave, DateTime.Now.AddSeconds(expireSeconds));
|
||||
if (expireSeconds > 0)
|
||||
{
|
||||
cache.KeyExpire(chiave, DateTime.Now.AddSeconds(expireSeconds));
|
||||
}
|
||||
//answ = true;
|
||||
}
|
||||
catch
|
||||
@@ -1608,7 +1611,10 @@ namespace SteamWare
|
||||
{
|
||||
RedisKey chiave = hashKey;
|
||||
answ = redSaveHashDict(hashKey, hashFields);
|
||||
if (expireSeconds > 0) cache.KeyExpire(chiave, DateTime.Now.AddSeconds(expireSeconds));
|
||||
if (expireSeconds > 0)
|
||||
{
|
||||
cache.KeyExpire(chiave, DateTime.Now.AddSeconds(expireSeconds));
|
||||
}
|
||||
//answ = true;
|
||||
}
|
||||
catch
|
||||
|
||||
Reference in New Issue
Block a user