Interface RedisCaptchaStore.RedisSetter

Enclosing class:
RedisCaptchaStore
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface RedisCaptchaStore.RedisSetter
Functional interface for Redis SET with TTL operation. 用于带TTL的Redis SET操作的函数式接口。
Since:
JDK 25, opencode-base-captcha V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    set(String key, String value, Duration ttl)
    Sets a value with TTL.
  • Method Details

    • set

      void set(String key, String value, Duration ttl)
      Sets a value with TTL. 设置带TTL的值。
      Parameters:
      key - the key | 键
      value - the value | 值
      ttl - the time to live | 存活时间