TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
David Smith
NA
2k
0
Timestamp Access Time
Jul 26 2018 1:32 PM
I noticed that you used a timestamp to keep track of your access time. If we ever multithread this cache or if we run on an operating system that does not have a high granularity timestamp this will cause the cache to run incorrectly. Can you refactor your logic so that this will work correctly under any circumstance.
I am using this below. How to refactor this to make sure this will work under any circumstance
public void UpdateAccessTime() => AccessTime = Stopwatch.GetTimestamp();
Reply
Answers (
6
)
How to fix the problem Asp publish , IP address not on IIS
WPF, count number of empty textbox and ComboBox