1 5 package org.exoplatform.services.cache.impl; 6 7 import java.io.Serializable ; 8 import org.exoplatform.services.cache.ExoCache; 9 14 public class MockExoCache implements ExoCache { 15 16 public MockExoCache() { 17 } 18 19 public String getName() { return "cache" ; } 20 21 public Object get(Serializable name) throws Exception { 22 return null ; 23 } 24 25 public Object remove(Serializable name) throws Exception { 26 return null ; 27 28 } 29 30 public void put(Serializable key, Object obj) throws Exception { 31 } 32 33 public void clear() throws Exception { 34 } 35 36 public int getCacheSize() { return 0 ; } 37 38 public int getMaxSize() { return 10 ; } 39 public void setMaxSize(int max) { } 40 41 public int getCacheHit() { return 0 ;} 42 43 public int getCacheMiss() { return 0 ; } 44 } 45 46 | Popular Tags |