# PaginationQueryWithRedis **Repository Path**: vingkin/PaginationQueryWithRedis ## Basic Information - **Project Name**: PaginationQueryWithRedis - **Description**: Redis分页查询组件 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-10-13 - **Last Updated**: 2023-10-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PaginationQueryWithRedis #### 介绍 Redis分页查询组件 #### 安装教程 1. yml配置 ```yaml server: port: 5191 spring: application: name: pagination-query-with-redis datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/database?useSSL=false username: your-username password: your-password redis: host: localhost port: 6379 password: your-password lettuce: pool: max-active: 10 max-idle: 10 min-idle: 1 time-between-eviction-runs: 10s jackson: default-property-inclusion: non_null # JSON处理时忽略非空字段 mybatis-plus: type-aliases-package: io.github.vingkin.redis.entity # 别名扫描包 logging: level: io.github.vingkin.redis: debug ``` 2. 前端演示部分查看当前仓库的另一个分支。 3. MySQL 数据源以及 Redis 数据源配置完成后,将`tb_user.sql`导入 MySQL,启动主程序程序,会自动将`tb_user`中的数据预热到 Redis 中,其中以`user_id`为 score。