Last post Jun 06, 2012 04:30 AM by Mudasir.Khan
Jun 06, 2012 03:13 AM|yonatan1082|LINK
Say I have three assemblies -
1. BLL which allows fetching and updating data (DLL)
2. an admin that supplies the gui and uses the functions of the BLL (Website)
3. a website which displays the data (Website)
And I want to use a caching in the website so that only when the data in the BLL is updated I will query through the database.
What is the best solution?
I was thinking of having a variable in the BLL that indicates whether the data is updated. Is there some sort of caching mechnisem for non website assemcly such as the said DLL?
Jun 06, 2012 04:30 AM|Mudasir.Khan|LINK
inside BLL create a layer which will check whether data is available in cache depedning on the key if yes then return from cache else
fetch the data insert into cache and then return the data