Get time from Redis and format as a string.
Examples
r <- redux::hiredis()
# The output of Redis' TIME command is not the *most* useful
# thing in the world:
r$TIME()
#> [[1]]
#> [1] "1756735975"
#>
#> [[2]]
#> [1] "736709"
#>
# We can get a slightly nicer representation like so:
redux::redis_time(r)
#> [1] "1756735975.737572"
# And from that convert to an actual R time:
redux::redis_time_to_r(redux::redis_time(r))
#> [1] "2025-09-01 14:12:55 UTC"