Print Page | Close Window

DevForce caching

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3333
Printed Date: 06-Sep-2025 at 12:30am


Topic: DevForce caching
Posted By: Thomas
Subject: DevForce caching
Date Posted: 12-Mar-2012 at 10:25pm
This is just a general question about caching in DevForce:

If I quey the cache on the client to get a list of persons, insert a person and after that query the cache again does the cache contain my own inserted person? 

I would also be interested if the same is true for the server version. So if it is true it would mean that on the server I could always query the cache as long as there is no other application directly inserting into the database.



Replies:
Posted By: DenisK
Date Posted: 13-Mar-2012 at 2:42pm
Hi Thomas,

There are 2 types of caching in DevForce,

1. Query caching -  http://drc.ideablade.com/xwiki/bin/view/Documentation/query-cache - http://drc.ideablade.com/xwiki/bin/view/Documentation/query-cache

and

2. Entity caching (EntityManager's cache) -  http://drc.ideablade.com/xwiki/bin/view/Documentation/start-entity-cache - http://drc.ideablade.com/xwiki/bin/view/Documentation/start-entity-cache

They both determine DevForce caching behavior.

The answer to your first question, is yes. When you add that person to the EntityManager, it will be stored in the EntityManager's cache.

There's no difference in caching behavior for client or server's version of EntityManager. So, yes, if you have queried all data into your server version of EntityManager, then you can always work with its cache.



Print Page | Close Window