public class RedisPreventRepeat extends Object implements PreventRepeat
Redis-based prevent repeat submit
getAndSet add parameter timeoutVALUE| 构造器和说明 |
|---|
RedisPreventRepeat() |
public boolean exists(String key, long timeout)
PreventRepeatexists 在接口中 PreventRepeatkey - the submit keytimeout - the operation timeoutpublic void remove(String key)
PreventRepeatremove 在接口中 PreventRepeatkey - the submit keyCopyright © 2020. All rights reserved.