Py学习  »  Redis

rails redis expire方法

rail_engine • 6 年前 • 879 次点击  

如果我有21天内到期的代币

Rails.cache.write token, id, expires_in: 21.days

我正在尝试编写一个方法来检查是否已过期。请告诉我方向

def check_token_expiry(token)

end
Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/47606
文章 [ 2 ]  |  最新文章 6 年前