Hi all
I am still doing my analysis, so i havent written code yet!I have a question on how many cache we can have. I have an idea and here it goes:
I figured i would have 4 cache:
BookedRecords Cache(An ArrayList) This would have an inventory of all booked records. All client wishing to book a record that isnt booked will check here first, if the record number exists in the arraylist, then it doesnt even bother trying to book a record.
DeletedRecords Cache(An arrayList): This would have an inventory of all the deleted records. All client wishing to lock also check here to ensure that the record aint deleted.
LiveRecords(An ArrayList): This would contain, all valid records that can be locked and that are not deleted.
LockedRecords(An arrayList): Even though I feel this might not be needed. I want to ask if the idea of declaring a cache for locked records is a good one cause I feel this should be handled while trying to lock.Basically the clients trying to lock also check this cache to find out if the record they are looking for is already locked.
Well that is that on this subject of cache! Have a nice day!