In the previous chapter, we got an overview of the several cache topologies Infinispan provides.
This chapter will describe the key guidelines and design patterns we will need in order to design the data layer of an application. It will also describe how to configure Infinispan to use Hibernate second-level cache with Infinispan.
In this chapter, we will discuss the following topics:
Data access patterns
Understanding and configuring second-level cache in Hibernate with Infinispan
Implementing the cache-aside programming pattern
Reading and writing through cache
Writing behind cache