获取某个key的过期时间,单位秒
27 28 29 30
# File 'lib/xunch/cache/cache.rb', line 27 def ttl(key) new_key = assembleKey(key) @shard_redis.ttl(new_key) end