Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "antonis"

How are classes marked as singleton are initialized? Which scope do they use to be created?

Thanks in advance

Answer

Yes I totally understand this. Mostly I intend to use it for entries that are not created/updated/deleted

Why it is not recommended?

Answer

What do you mean?

Answer

Eventually I have to write my own cache. I think this functionality is very easy to be added to existing ITypeCache since it is very easy to implement it.

Answer

I am confused.

It automatically invalidates a cached entity if this entity is updated or deleted. Thus, it will be retrieved from the database in the next call.

and then you said that:

If your entity changes frequently, you can consider adding/deleting/updating the cached list Dto when certain entities are changed. Of course this is cumbersome.

Is it creating/updating/deleting or I have to do it manually

If your entity does not change often, you can directly store the Dto of the list in the cache, and re-query the list Dto update cache when some entities change.

How can I do that?

I have a class Client that inherits from Entity. By default it created the Class with an Id property. I want to override the default naming and make it ClientId. Is that possible?

Thanks

Answer

It lacks one very important thing though. No way to retrieve all objects at once (list) but instead I can only retrieve it one by one. This is very inefficient especially in cases that you want to return to client an OutputDto which contains list of items for drawing controls (e.g Countries dropdown need to get all countries)

Answer

So every time a create/update/delete an entity from the database the Cache dto is updated?

Thanks

Question

Hi,

I am looking to store Entities in Cache instead of querying the database all the time and when an entity is CRUD these changes to be also replicated to Cache.

I read Caching in aspnetboilerplate documentation but it does not support the above requirement and it is also not storing Entitis but rather Dtos. Is there anything that support my requirements?

Thanks in advance

Showing 41 to 50 of 202 entries