This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I want to cache a translation table to the memory using the second level caching functionality does these values get expired after a period of time? I don't want them to expire since its a fixed table is the Entity caching is the best way to do that? |
|
|
Yes you can use entity caching for this and you should set the CacheFindAllResult property to true on your Cached attribute so that the whole set is cached. You can then seed the cache with a UnitOfWork.Find(new Query(typeof(YourEntityType))) call. In terms of expiry time, this is specified in minutes so you wont be able to have an indefinite expiry but you can specify a large number so its effectively not going to expire in real terms (e.g. Int64.MaxValue).
|
|