I have to create some sort of "cache", here's the scenario:
1. User enters keywords or makes a selection from menus
2. Users selections are converted into a string, and its hashcode is derived
3. Results are fetched from the database according to user's selections
4. Cache file is created, hashcode of the user selection string is used as the file name .. database results are dumped into the cache file
The problem arises when there is a chance that next time the app is run, for the same user selection the hashcode might be different. (Ref: MSDN Docs)
Is there any available alternative we can use as the filename instead of hashcodes which stays consistent?