ehcache单体缓存,内部有多个缓存单体类似hashmap的结构,通过getCache得到对应的cache,通过put方法,将element放入缓存中。
主要cache是通过cachemanager这个类操作的