Class ServiceConfig.Redis

java.lang.Object
org.apache.opendal.ServiceConfig.Redis
All Implemented Interfaces:
ServiceConfig
Enclosing interface:
ServiceConfig

public static class ServiceConfig.Redis extends Object implements ServiceConfig
Configuration for service redis.
  • Field Details

    • db

      public final long db

      the number of DBs redis can take is unlimited

      default is db 0

    • endpoint

      public final String endpoint

      network address of the Redis service. Can be "tcp://127.0.0.1:6379", e.g.

      default is "tcp://127.0.0.1:6379"

    • clusterEndpoints

      public final String clusterEndpoints

      network address of the Redis cluster service. Can be "tcp://127.0.0.1:6379,tcp://127.0.0.1:6380,tcp://127.0.0.1:6381", e.g.

      default is None

    • username

      public final String username

      the username to connect redis service.

      default is None

    • password

      public final String password

      the password for authentication

      default is None

    • root

      public final String root

      the working directory of the Redis service. Can be "/path/to/dir"

      default is "/"

    • defaultTtl

      public final Duration defaultTtl

      The default ttl for put operations.

  • Constructor Details

    • Redis

      public Redis()
  • Method Details