如果我有21天内到期的代币
Rails.cache.write token, id, expires_in: 21.days
我正在尝试编写一个方法来检查是否已过期。请告诉我方向
def check_token_expiry(token) end