-
Language:
English
-
Language:
English
14.3.2. Configure and Inject Infinispan Caches
14.3.2.1. Inject an Infinispan Cache
An Infinispan cache is one of the multiple components that can be injected into the project's CDI beans.
The following code snippet illustrates how to inject a cache instance into the CDI bean:
public class MyCDIBean { @Inject Cache<String, String> cache; }