1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.kernel.cache;
16  
17  import java.io.Serializable;
18  
19  /**
20   * <a href="SingleVMPool.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   * @author Michael Young
24   */
25  public interface SingleVMPool {
26  
27      public void clear();
28  
29      public void clear(String name);
30  
31      public Object get(String name, String key);
32  
33      /**
34       * @deprecated
35       */
36      public Object get(PortalCache portalCache, String key);
37  
38      public PortalCache getCache(String name);
39  
40      public PortalCache getCache(String name, boolean blocking);
41  
42      public void put(String name, String key, Object obj);
43  
44      /**
45       * @deprecated
46       */
47      public void put(PortalCache portalCache, String key, Object obj);
48  
49      /**
50       * @deprecated
51       */
52      public void put(
53          PortalCache portalCache, String key, Object obj, int timeToLive);
54  
55      public void put(String name, String key, Serializable obj);
56  
57      /**
58       * @deprecated
59       */
60      public void put(PortalCache portalCache, String key, Serializable obj);
61  
62      /**
63       * @deprecated
64       */
65      public void put(
66          PortalCache portalCache, String key, Serializable obj, int timeToLive);
67  
68      public void remove(String name, String key);
69  
70      /**
71       * @deprecated
72       */
73      public void remove(PortalCache portalCache, String key);
74  
75  }