1
19
20 package com.liferay.portal.kernel.cache;
21
22 import java.io.Serializable;
23
24
31 public class MultiVMPoolUtil {
32
33 public static void clear() {
34 getMultiVMPool().clear();
35 }
36
37 public static void clear(String name) {
38 getMultiVMPool().clear(name);
39 }
40
41 public static Object get(String name, String key) {
42 return getMultiVMPool().get(name, key);
43 }
44
45 public static Object get(PortalCache portalCache, String key) {
46 return getMultiVMPool().get(portalCache, key);
47 }
48
49 public static MultiVMPool getMultiVMPool() {
50 return _multiVMPool;
51 }
52
53 public static PortalCache getCache(String name) {
54 return getMultiVMPool().getCache(name);
55 }
56
57 public static PortalCache getCache(String name, boolean blocking) {
58 return getMultiVMPool().getCache(name, blocking);
59 }
60
61 public static void put(String name, String key, Object obj) {
62 getMultiVMPool().put(name, key, obj);
63 }
64
65 public static void put(PortalCache portalCache, String key, Object obj) {
66 getMultiVMPool().put(portalCache, key, obj);
67 }
68
69 public static void put(String name, String key, Serializable obj) {
70 getMultiVMPool().put(name, key, obj);
71 }
72
73 public static void put(
74 PortalCache portalCache, String key, Serializable obj) {
75
76 getMultiVMPool().put(portalCache, key, obj);
77 }
78
79 public static void remove(String name, String key) {
80 getMultiVMPool().remove(name, key);
81 }
82
83 public static void remove(PortalCache portalCache, String key) {
84 getMultiVMPool().remove(portalCache, key);
85 }
86
87 public void setMultiVMPool(MultiVMPool multiVMPool) {
88 _multiVMPool = multiVMPool;
89 }
90
91 private static MultiVMPool _multiVMPool;
92
93 }