saveTime abstract method

void saveTime(
  1. String key,
  2. int duration
)

save expiry time in milliseconds for this data key - the key used to store the data duration - duration of cache in seconds

Implementation

void saveTime(String key, int duration);