package com.YuyeTech.HeartRate.annotation;

import com.YuyeTech.HeartRate.enums.RedisType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface RedisUpdate {

    /**
     * key值，对应redis里面的key
     * @return
     */
    String key() default "";

    /**
     * 当前枚举策略
     * @return
     */
    RedisType strategy() default RedisType.NULL;

}
