Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2084 Lượt xem

Hello,

I work on a project where we use an external API. This API allows to keep the same token for 7 days.

I'd like to not reconnect everytime and use the token while it has still less than 7 days but I don't know the good practice for that. Do I keep it in a new model (which would have only 1 line in the DB ) and every time I need to access to the API, I access to the model and check the date or there are better methods?


Thank you in advance for your help.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 24
2362
1
thg 2 22
4089
1
thg 2 22
7069
0
thg 11 21
4570
3
thg 5 21
13925