Spring cache: custom key generator (#4166)
This commit is contained in:
committed by
maibin
parent
258d5c09f0
commit
e22750ffe1
@@ -6,6 +6,15 @@ public class Book {
|
||||
private String author;
|
||||
private String title;
|
||||
|
||||
public Book() {
|
||||
}
|
||||
|
||||
public Book(int id, String author, String title) {
|
||||
this.id = id;
|
||||
this.author = author;
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user