类 CacheBothController
- java.lang.Object
-
- cn.flyelf.cache.sample.controller.CacheBothController
-
@RestController @RequestMapping("/cache/both") public class CacheBothController extends java.lang.Object应用所有缓存层的缓存接口
-
-
构造器概要
构造器 构造器 说明 CacheBothController()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 reactor.core.publisher.Flux<cn.flyelf.cache.core.model.CacheTestModel>getBothList(java.lang.String key)reactor.core.publisher.Mono<cn.flyelf.cache.core.model.CacheTestModel>getBothSimple(java.lang.String key)reactor.core.publisher.Flux<cn.flyelf.cache.core.model.CacheTestModel>putBothList(java.lang.String key, long[] id, java.lang.String[] name, java.lang.Integer[] index, java.lang.Long duration)reactor.core.publisher.Mono<java.lang.Boolean>putBothSimple(java.lang.String key, long id, java.lang.String name, java.lang.Integer index)
-
-
-
方法详细资料
-
putBothList
@GetMapping("/list/put/{key}") public reactor.core.publisher.Flux<cn.flyelf.cache.core.model.CacheTestModel> putBothList(@PathVariable("key") java.lang.String key, @RequestParam("id") long[] id, @RequestParam("name") java.lang.String[] name, @RequestParam("index") java.lang.Integer[] index, @RequestParam(value="duration",required=false) java.lang.Long duration)
-
getBothList
@GetMapping("/list/get/{key}") public reactor.core.publisher.Flux<cn.flyelf.cache.core.model.CacheTestModel> getBothList(@PathVariable("key") java.lang.String key)
-
putBothSimple
@GetMapping("/simple/put/{key}") public reactor.core.publisher.Mono<java.lang.Boolean> putBothSimple(@PathVariable("key") java.lang.String key, @RequestParam("id") long id, @RequestParam("name") java.lang.String name, @RequestParam("index") java.lang.Integer index)
-
getBothSimple
@GetMapping("/simple/get/{key}") public reactor.core.publisher.Mono<cn.flyelf.cache.core.model.CacheTestModel> getBothSimple(@PathVariable("key") java.lang.String key)
-
-