Click here to Skip to main content
16,018,653 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,
I have to store some configuration data for my multiple applications.Can anyone suggest me the best for doing the same.

Currently i have impimented file system in which i am getting data from DB and creating a xml file and now all applications are sharing data from the xml file. But in this case if my configuration data changes then how to refresh the data.

I have read about sql dependency but its failed in the scenerio if some data has to be affect after a given time .
i.e my configuration data has some values like charges that should be affect each application after the given time by the user.

Please send some sample example if posible.

Thanks
Arun Kr. Sharma
Noida team
Nexgen.
Posted

You can use the SqlCacheDependency class to create a cache item dependency on a table or row in a database. When a change occurs in the table or in a specific row, the item that has a dependency is invalidated and removed from the cache.
 
Share this answer
 
Comments
Arun Kr. Sharma 2-Jul-10 6:26am    
Thanx priya ,
I have impimented the same but i need some solution which will not be Dependendent on DataBase type,Sql server ,Oracle etc.

and also this is not fullfilling my requirement of invalidating data on the basis of different rules.
You can use Caching Application Block of [Enterprise Library]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900