Questions tagged [second-level-cache]

Second-level-cache, as the name implies, is a layer of cache that lives between a "primary" cache and a data service/store (relational database, in most cases) to optimize read operations on the service/store. It is different from the primary cache in its lifespan (primary cache being limited to a request lifetime) and capabilities (persist to store, clustering, etc.).

Second-level-cache, as the name implies, is a layer of cache that lives between a "primary" cache and a data service/store (relational database, in most cases) to optimize read operations on the service/store. It is different from the primary cache in its lifespan (primary cache being limited to a request lifetime) and capabilities (persist to store, clustering, etc.).

Second-level-cache is a concept most often encountered in the context of object-persistence frameworks, such as Hibernate. The idea is to allow the persistence engine to maintain a copy of entities that are available in the data service/store so that queries to retrieve them can be fulfilled using a local lookup as opposed to a full roundtrip to the service/store which invariably lives in a different server, thus requiring a network operation and incurring the associated overhead and latency/performance impact.

350 questions
0
votes
1 answer

Ehcache store something forever

I use ehcache as second level cache and I want to use it to store simple text messages and locales (They are stored in the DB). But those messages will never change, so there is no need to refresh the data. Should I set a new cache with no…
Ido Barash
  • 4,856
  • 11
  • 41
  • 78
0
votes
1 answer

Transactional strategy for Hibernate L2 Cache

If Hibernate L2 cache vendor supports "transactional" strategy, then does it mean that this cache guarantees the same level of isolation between transactions as specified in Hibernate config? For example, if cache supports "read-write" strategy then…
Yury Litvinov
  • 1,354
  • 2
  • 16
  • 24
0
votes
1 answer

Collection is not selected with NHibernate-Caching

I have the fallowing entities: Person Company And then, there is a entity PersonCompany which makes a Relation between Person and Company Mapping for Person is: public class PersonMap : SubclassMap { public PersonMap() { …
BennoDual
  • 5,865
  • 15
  • 67
  • 153
-1
votes
1 answer

NHibernate second level cache is automatically cleared by NHibernate in web service

I use SysCache2 as the second-level cache provider for NHibernate. Here is the test code: `ISession session = NHibernateHelper.GetSession(); Model.Task t1 =…
-1
votes
1 answer

Hibernate remvoves all cached objects from second level cache when insert query is failed or when excpetion occures - how to prevent it.please suggest

Hibernate removes all cached objects from second level cache when insert query is failed or when exception occurres - how to prevent it.please suggest
Ahmed
  • 1
1 2 3
23
24