001
014
015 package com.liferay.portal.kernel.cache;
016
017 import java.io.Serializable;
018
019
023 public class MultiVMPoolUtil {
024
025 public static void clear() {
026 getMultiVMPool().clear();
027 }
028
029 public static void clear(String name) {
030 getMultiVMPool().clear(name);
031 }
032
033 public static Object get(String name, String key) {
034 return getMultiVMPool().get(name, key);
035 }
036
037
040 public static Object get(PortalCache portalCache, String key) {
041 return getMultiVMPool().get(portalCache, key);
042 }
043
044 public static MultiVMPool getMultiVMPool() {
045 return _multiVMPool;
046 }
047
048 public static PortalCache getCache(String name) {
049 return getMultiVMPool().getCache(name);
050 }
051
052 public static PortalCache getCache(String name, boolean blocking) {
053 return getMultiVMPool().getCache(name, blocking);
054 }
055
056 public static void put(String name, String key, Object obj) {
057 getMultiVMPool().put(name, key, obj);
058 }
059
060
063 public static void put(PortalCache portalCache, String key, Object obj) {
064 getMultiVMPool().put(portalCache, key, obj);
065 }
066
067 public static void put(String name, String key, Serializable obj) {
068 getMultiVMPool().put(name, key, obj);
069 }
070
071
074 public static void put(
075 PortalCache portalCache, String key, Serializable obj) {
076
077 getMultiVMPool().put(portalCache, key, obj);
078 }
079
080 public static void remove(String name, String key) {
081 getMultiVMPool().remove(name, key);
082 }
083
084
087 public static void remove(PortalCache portalCache, String key) {
088 getMultiVMPool().remove(portalCache, key);
089 }
090
091 public static void removeCache(String name) {
092 getMultiVMPool().removeCache(name);
093 }
094
095 public void setMultiVMPool(MultiVMPool multiVMPool) {
096 _multiVMPool = multiVMPool;
097 }
098
099 private static MultiVMPool _multiVMPool;
100
101 }