Skip to content

Latest commit

 

History

History
12 lines (11 loc) · 489 Bytes

README.md

File metadata and controls

12 lines (11 loc) · 489 Bytes

my-redisson-parent

1、myredisson 自定义redisson缓存 @MyCacheable使用

    @GetMapping("/getMyCacheable")
    @MyCacheable(cacheName = "mycache", key = "#key+'_'+#hkey", expire = 1000, timeUnit = TimeUnit.SECONDS)
    public ApiResult getMyCacheable(@RequestParam("key") String key, @RequestParam("hkey") String hkey) {
        System.out.println("key----->test");
        return ApiResult.ok(key);
    }

2、myZookeeper-project-test分布式锁简单应用