Skip to content

Commit 2449b7c

Browse files
committed
去掉无用代码
1 parent 73bb1ea commit 2449b7c

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

spring-boot-student-cache-redis-caffeine/src/main/java/com/xiaolyuh/cache/LayCacheable.java

Lines changed: 0 additions & 36 deletions
This file was deleted.

spring-boot-student-cache-redis-caffeine/src/main/java/com/xiaolyuh/service/impl/PersonServiceImpl.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.xiaolyuh.service.impl;
22

3-
import com.xiaolyuh.cache.LayCacheable;
4-
import com.xiaolyuh.cache.setting.FirstCacheSetting;
53
import com.xiaolyuh.entity.Person;
64
import com.xiaolyuh.repository.PersonRepository;
75
import com.xiaolyuh.service.PersonService;
@@ -56,7 +54,6 @@ public Person findOne() {
5654

5755
@Override
5856
@Cacheable(value = "people1", key = "#person.id", sync = true)//3
59-
@LayCacheable(fcs = FirstCacheSetting.class, ccc = @Cacheable(value = "people1", key = "#person.id", sync = true))
6057
public Person findOne1(Person person, String a, String[] b, List<Long> c) {
6158
Person p = personRepository.findOne(person.getId());
6259
if (p != null) {

0 commit comments

Comments
 (0)