Click here to Skip to main content
15,902,025 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am facing a strange problem while inserting values in Cache object. I am needed to store two key/value pair (note: same key and value) in Cache in a ASP.Net project. And I am doing something like following. I am able to access the first value later but the second value always seems to be NULL within the specified expiration time. What am I missing or doing wrong?
SQL
Cache.Insert("i67yoiuuy87", "i67yoiuuy87", Nothing, DateTime.Now.AddSeconds(100), Cache.NoSlidingExpiration)
Cache.Insert("783492384", "783492384", Nothing, DateTime.Now.AddSeconds(100), Cache.NoSlidingExpiration)
Posted

1 solution

Please ignore. I fixed it myself. There is no problems in the above code. There was a mistake that I made in another part of the website that affected the values.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900