package com.njzscloud.common.redis.annotation;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * Redis 监听器
 * <p>使用方式 {Eg}</p>
 */
@Inherited
@Component
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface RedisListener {
    @AliasFor(annotation = Component.class)
    String value() default "";
}
