package com.YuyeTech.TPlat.annotation;

import com.YuyeTech.TPlat.enums.GameEnum;
import com.YuyeTech.TPlat.enums.RedisType;

import javax.persistence.GenerationType;
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;

}
