All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.feingto.cloud.config.redis.RedisCacheable Maven / Gradle / Ivy

There is a newer version: 2.3.8.RELEASE
Show newest version
package com.feingto.cloud.config.redis;

import java.lang.annotation.*;

/**
 * 针对方法配置,能够根据方法的请求参数对其结果进行缓存
 *
 * @author longfei
 */
@Documented
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface RedisCacheable {
    String cacheName() default "";

    /**
     * 缓存Key,支持EL表达式
     */
    String key();

    /**
     * 过期秒数
     */
    long expire() default 0;

    /**
     * 实体类
     */
    Class clz() default Object.class;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy