Home > Back-end >  Have a great god can realize the article according to the article reading order
Have a great god can realize the article according to the article reading order

Time:11-17

To a great god help write a use redis implement article reading quantity, and then in the heat of the query function
private int id;
private String title;//title
Private String sub_title; Subtitle//article
private String content;//content
Private Blob imager;//picture
@ JsonFormat (timezone="GMT + 8", the pattern="MM - dd yyyy - HH: MM: ss")
Private Date create_time;//create time
Private String hite.//position
Private Integer hits.//clicks
Private Integer commentsNum;
total//commentPrivate Date currenttime;//the current time
This is the entity class

CodePudding user response:

Yourself that

CodePudding user response:

Using redis sortSet to do sorting
  • Related