ankursaxena
Programmer
Hi! i have a small problem, i want to cache data, what exactly is the best way to do so for say 10,000 records of phone numbers and some associated data. each record will contain aprox 320 bytes and hence 3.2mb of data cache for my server program.
why i need to cache is, i have a database in the background, i dont want to send and retrieve data from there often, so i want an efficient way of caching my requests. but the data in the database can be changed and hence, when i make a request, rather than requesting all the fields i will only request a dirtybit field for each row, to c if that has been set, if so then i make the query, else just look in my cache for the data. how could i go about doing this.
input would be greatly appreciated.
thanx a lot.
Ankur
why i need to cache is, i have a database in the background, i dont want to send and retrieve data from there often, so i want an efficient way of caching my requests. but the data in the database can be changed and hence, when i make a request, rather than requesting all the fields i will only request a dirtybit field for each row, to c if that has been set, if so then i make the query, else just look in my cache for the data. how could i go about doing this.
input would be greatly appreciated.
thanx a lot.
Ankur