com.clickntap.tool.cache
Class MemoryCache

java.lang.Object
  extended by com.clickntap.tool.cache.MemoryCache
All Implemented Interfaces:
Cache

public class MemoryCache
extends Object
implements Cache


Constructor Summary
MemoryCache()
           
 
Method Summary
 boolean contains(Serializable key)
           
 Serializable get(Serializable key)
           
 Serializable put(Serializable key, Serializable value)
           
 void remove(Serializable key)
           
 void removeAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryCache

public MemoryCache()
Method Detail

get

public Serializable get(Serializable key)
                 throws Exception
Specified by:
get in interface Cache
Throws:
Exception

put

public Serializable put(Serializable key,
                        Serializable value)
                 throws Exception
Specified by:
put in interface Cache
Throws:
Exception

remove

public void remove(Serializable key)
            throws Exception
Specified by:
remove in interface Cache
Throws:
Exception

removeAll

public void removeAll()
               throws Exception
Specified by:
removeAll in interface Cache
Throws:
Exception

contains

public boolean contains(Serializable key)
                 throws Exception
Specified by:
contains in interface Cache
Throws:
Exception


Copyright © 2014. All rights reserved.