Package de.umass.lastfm.cache
Interface ExpirationPolicy
-
- All Known Implementing Classes:
DefaultExpirationPolicy
public interface ExpirationPolicy
TheExpirationPolicy
decides if and how long a request should be cached.- Author:
- Janni Kovacs
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getExpirationTime(java.lang.String method, java.util.Map<java.lang.String,java.lang.String> params)
Returns the time in milliseconds a request of the given method should be cached.
-
-
-
Method Detail
-
getExpirationTime
long getExpirationTime(java.lang.String method, java.util.Map<java.lang.String,java.lang.String> params)
Returns the time in milliseconds a request of the given method should be cached. Returns -1 if this method should not be cached.- Parameters:
method
- The method calledparams
- The parameters sent- Returns:
- the time the request should be cached in milliseconds
-
-