Redis
Use Redis commands with JdbcTemplate and Mappers. See JDBC Redis for connections.
Using dbVisitor
- Programmatic API: queries, writes, multiple results, and stored routine differences.
- Mapper API: annotations, Mapper reads and writes, and execution differences.
- Builder API: Supported operations, datasource-specific behavior, and usage.
- Query Operations: Execute queries, combine filters, and map results.
- Data Writes: Insert, update, delete, and handle write results.
- Pagination: Fetch a range and obtain totals.
- Keys and Identifiers: Choose Redis keys and generate identifiers.
- Parameters and Rules: Bind values and select native command fragments.
- Type Support: Choose Java types for stored values.
- Reading Results: Read result columns and map returned values.
- Result Handling: Check availability of the three handlers across API entry points.
- Transaction Support: Transaction API behavior and isolation-level settings.
Business Scenarios
Product Cache · Login State · Shopping Cart
View Counter · User Likes · Points Ranking
Command Basics
Command Format and Parameters · Command Results
Command Reference
String · Hash · List · Set · Sorted Set
Key Management · Server Commands