Interface RExpirableAsync

    • Method Detail

      • expireAsync

        RFuture<Boolean> expireAsync​(long timeToLive,
                                     TimeUnit timeUnit)
        Set a timeout for object in async mode. After the timeout has expired, the key will automatically be deleted.
        Parameters:
        timeToLive - - timeout before object will be deleted
        timeUnit - - timeout time unit
        Returns:
        true if the timeout was set and false if not
      • expireAtAsync

        RFuture<Boolean> expireAtAsync​(Date timestamp)
        Set an expire date for object in async mode. When expire date comes the key will automatically be deleted.
        Parameters:
        timestamp - - expire date
        Returns:
        true if the timeout was set and false if not
      • expireAtAsync

        RFuture<Boolean> expireAtAsync​(long timestamp)
        Set an expire date for object in async mode. When expire date comes the key will automatically be deleted.
        Parameters:
        timestamp - - expire date in milliseconds (Unix timestamp)
        Returns:
        true if the timeout was set and false if not
      • clearExpireAsync

        RFuture<Boolean> clearExpireAsync()
        Clear an expire timeout or expire date for object in async mode. Object will not be deleted.
        Returns:
        true if the timeout was cleared and false if not
      • remainTimeToLiveAsync

        RFuture<Long> remainTimeToLiveAsync()
        Remaining time to live of Redisson object that has a timeout
        Returns:
        time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.