net.dontdrinkandroot.lastfm.api.cache
Class MemoryCache

java.lang.Object
  extended by net.dontdrinkandroot.lastfm.api.cache.MemoryCache
All Implemented Interfaces:
Cache

public class MemoryCache
extends java.lang.Object
implements Cache


Constructor Summary
MemoryCache()
           
 
Method Summary
<T extends java.io.Serializable>
T
get(java.lang.String id)
           
<T extends java.io.Serializable>
T
put(java.lang.String id, T data, long timeToLive)
           
 
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 <T extends java.io.Serializable> T get(java.lang.String id)
Specified by:
get in interface Cache

put

public <T extends java.io.Serializable> T put(java.lang.String id,
                                              T data,
                                              long timeToLive)
Specified by:
put in interface Cache


Copyright © 2013 dontdrinkandroot. All Rights Reserved.