Interview question: how does java realize membership status update accurate to seconds

CSDN Q & A 2022-05-15 04:47:00 阅读数:125


Java How to update member status accurately to seconds :

 scene : Every user of the membership system has a ** Opening member time , Membership expiration time , Membership or not **, There are about ten million member data needs : According to the expiration time of the member (datatime) Accurate to seconds, whether to update the member status in real time 

Take the answer :

For users, there are , Put its constant information into redis And set expiration time . Listen to these data in the program . It can be changed directly after expiration .( Personal opinion )

版权声明:本文为[CSDN Q & A]所创,转载请带上原文链接,感谢。