B
BLUE
I insert a string in cache in a property set and I retrieve that string in
the get.
I retrieve my string with Read web method and I insert it with Write web
method: to try cache I do Read, Write, Read.
When I do the second Read, string is null if in the property set,
before/after inserting data into cache I write this code:
using (StreamWriter streamWriter = new
StreamWriter(@"D:\Log.txt"))
{
streamWriter.Write(cacheValue);
streamWriter.Flush();
}
Debuggin the Write, in the watch windows I see the correct just inserted
value of cache.
The same behaviour persists if I write "Hello world" instead of cacheValue:
this deny to use cache in a web service where you need to write to a file!!!
It seems to be a bug since this behaviour is a nonsense!
Thanks,
Luigi.
the get.
I retrieve my string with Read web method and I insert it with Write web
method: to try cache I do Read, Write, Read.
When I do the second Read, string is null if in the property set,
before/after inserting data into cache I write this code:
using (StreamWriter streamWriter = new
StreamWriter(@"D:\Log.txt"))
{
streamWriter.Write(cacheValue);
streamWriter.Flush();
}
Debuggin the Write, in the watch windows I see the correct just inserted
value of cache.
The same behaviour persists if I write "Hello world" instead of cacheValue:
this deny to use cache in a web service where you need to write to a file!!!
It seems to be a bug since this behaviour is a nonsense!
Thanks,
Luigi.