1
22
23 package com.liferay.portal.kernel.cache;
24
25 import java.io.Serializable;
26
27
33 public class MultiVMPoolUtil {
34
35 public static void clear() {
36 getMultiVMPool().clear();
37 }
38
39 public static void clear(String name) {
40 getMultiVMPool().clear(name);
41 }
42
43 public static Object get(String name, String key) {
44 return getMultiVMPool().get(name, key);
45 }
46
47
50 public static Object get(PortalCache portalCache, String key) {
51 return getMultiVMPool().get(portalCache, key);
52 }
53
54 public static MultiVMPool getMultiVMPool() {
55 return _multiVMPool;
56 }
57
58 public static PortalCache getCache(String name) {
59 return getMultiVMPool().getCache(name);
60 }
61
62 public static PortalCache getCache(String name, boolean blocking) {
63 return getMultiVMPool().getCache(name, blocking);
64 }
65
66 public static void put(String name, String key, Object obj) {
67 getMultiVMPool().put(name, key, obj);
68 }
69
70
73 public static void put(PortalCache portalCache, String key, Object obj) {
74 getMultiVMPool().put(portalCache, key, obj);
75 }
76
77 public static void put(String name, String key, Serializable obj) {
78 getMultiVMPool().put(name, key, obj);
79 }
80
81
84 public static void put(
85 PortalCache portalCache, String key, Serializable obj) {
86
87 getMultiVMPool().put(portalCache, key, obj);
88 }
89
90 public static void remove(String name, String key) {
91 getMultiVMPool().remove(name, key);
92 }
93
94
97 public static void remove(PortalCache portalCache, String key) {
98 getMultiVMPool().remove(portalCache, key);
99 }
100
101 public void setMultiVMPool(MultiVMPool multiVMPool) {
102 _multiVMPool = multiVMPool;
103 }
104
105 private static MultiVMPool _multiVMPool;
106
107 }