• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

(B&S) Ideas on Updating Cache

 
Saheed Adepoju
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I have been wondering for a while how easy it would be to update the cache once an update has been done. I was tempted to send the data to be updated to a method that would retrive the recNo and then search for the record and update the object accordingly. My assumption is based on the following code:


However, i quickly notice, i have to hardcode the setters. I dont know if anyone id feeling me on this. I wouldnt mind an insight on how to accomplish this. Thanks all.
 
Aruneesh Salhotra
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good that I finally see code pieces which look on the similar lines I am working on.

One thing, I think the cache is a misnomer, just that the vector array (in my case), is a in memory replica of the file, which gets written to the disk once the object is modified.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11940
210
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Saheed,

Just a little hint: Why does your cache need to know what is in the String[] it is storing?

Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic