此内容没有您所选择的语言版本。
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;
}