Description Usage Arguments Examples
Get time from Redis and format as a string.
1 2 3 4 5 | redis_time(con)
format_redis_time(x)
redis_time_to_r(x)
|
con |
A Redis connection object |
x |
a list as returned by |
1 2 3 4 5 6 7 8 9 10 11 12 13 | if (redux::redis_available()) {
r <- redux::hiredis()
# The output of Redis' TIME command is not the *most* useful
# thing in the world:
r$TIME()
# We can get a slightly nicer representation like so:
redux::redis_time(r)
# And from that convert to an actual R time:
redux::redis_time_to_r(redux::redis_time(r))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.