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