package com.red.circle.other.infra.annotation;

import com.red.circle.other.infra.database.cache.key.user.UserHashKey;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 移除用户缓存标记.
 *
 * @author pengliang on 2019/12/2 9:48
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RemoveUserActionCache {


  /**
   * 用户id.
   */
  String[] value();

  /**
   * 移除的key.
   *
   * @return key
   */
  UserHashKey[] hashKey() default {};

}
