DAL or BOL?

  • Thread starter Thread starter Arjen
  • Start date Start date
A

Arjen

Hi,

I retriev data from a database, using my DAL.
Now I want to cache the results retrieved from the database.
Where should you add this code, in the DAL or BOL?

Thanks for the advice,
Arjen
 
The design depends on the components that will be accessing the cache. If the DAL will act as a layer between cached data and live
data, then it makes sense to keep it hidden within or behind the DAL. If UI classes or BOL classes require direct access to the
cached data, then it might make sense to keep it visible in the BOL.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top