Skip to content

Commit

Permalink
Add comment to example
Browse files Browse the repository at this point in the history
  • Loading branch information
babyfish-ct committed Sep 22, 2023
1 parent 1911a68 commit a1ae5e3
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,21 @@ class CacheConfig {
): KCacheFactory {

val redisTemplate = RedisCaches.cacheRedisTemplate(connectionFactory);


/*
* Single-view caches:
* - All object caches
* - `Book.store`
* - `Book.authors`
* - `TreeNode.parent`
* - `TreeNode.childNodes`
*
* Multiple-view caches:
* - `BookStore.books`
* - `Author.books`
* - `BookStore.avgPrice`
* - `BookStore.newestBooks`
*/
return object : AbstractKCacheFactory() {

// Id -> Object
Expand Down

0 comments on commit a1ae5e3

Please sign in to comment.