org.silverpeas.cache.service
Interface CacheService

All Superinterfaces:
SimpleCacheService
All Known Implementing Classes:
AbstractCacheService, EhCacheService

public interface CacheService
extends SimpleCacheService

User: Yohann Chastagnier Date: 11/09/13


Method Summary
 String add(Object value, int timeToLive)
          Adds a value and generate a unique key to retrieve later the value.
 String add(Object value, int timeToLive, int timeToIdle)
          Adds a value and generate a unique key to retrieve later the value.
 void put(Object key, Object value, int timeToLive)
          Puts a value for a given key.
 void put(Object key, Object value, int timeToLive, int timeToIdle)
          Puts a value for a given key.
 
Methods inherited from interface org.silverpeas.cache.service.SimpleCacheService
add, clear, get, get, put, remove, remove
 

Method Detail

add

String add(Object value,
           int timeToLive)
Adds a value and generate a unique key to retrieve later the value. After the given time, the value is trashed.

Parameters:
value -
timeToLive - 0 = unlimited
Returns:

add

String add(Object value,
           int timeToLive,
           int timeToIdle)
Adds a value and generate a unique key to retrieve later the value. After the given live time, the value is trashed. After the given idle time, the value is trashed.

Parameters:
value -
timeToLive - 0 = unlimited
timeToIdle - 0 = unlimited
Returns:

put

void put(Object key,
         Object value,
         int timeToLive)
Puts a value for a given key. After the given time, the value is trashed.

Parameters:
key -
value -
timeToLive - 0 = unlimited

put

void put(Object key,
         Object value,
         int timeToLive,
         int timeToIdle)
Puts a value for a given key. After the given time, the value is trashed. After the given idle time, the value is trashed.

Parameters:
key -
value -
timeToLive -
timeToIdle - 0 = unlimited


Copyright © 2016 Silverpeas. All Rights Reserved.