|
@@ -76,7 +76,7 @@ public class SequenceLockHelper {
|
|
|
*/
|
|
|
public static void releaseLock(Object... args) {
|
|
|
String key = LOCK_PREFIX + StringUtils.join(Arrays.asList(args), "_");
|
|
|
- getRedisClient().delete(key);
|
|
|
+ getRedisClient().expire(key, 1);
|
|
|
@SuppressWarnings("unchecked")
|
|
|
List<String> keyList = (List<String>) ServletUtil.getRequest()
|
|
|
.getAttribute(HttpServletRequestAttribute.$_CUSTOM_SEQUENCE_LOCK.name());
|