Class ServiceConfig.Redis
- All Implemented Interfaces:
ServiceConfig
- Enclosing interface:
ServiceConfig
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServiceConfig
ServiceConfig.Akamai, ServiceConfig.AliyunDrive, ServiceConfig.Azblob, ServiceConfig.Azdls, ServiceConfig.Azfile, ServiceConfig.B2, ServiceConfig.B2S3, ServiceConfig.Cacache, ServiceConfig.CephRgw, ServiceConfig.CloudflareKv, ServiceConfig.Compfs, ServiceConfig.Cos, ServiceConfig.CosS3, ServiceConfig.D1, ServiceConfig.Dashmap, ServiceConfig.Dbfs, ServiceConfig.Dropbox, ServiceConfig.Etcd, ServiceConfig.Exoscale, ServiceConfig.Foyer, ServiceConfig.Fs, ServiceConfig.Garage, ServiceConfig.Gcs, ServiceConfig.GcsGrpc, ServiceConfig.GcsS3, ServiceConfig.Gdrive, ServiceConfig.Ghac, ServiceConfig.Github, ServiceConfig.Goosefs, ServiceConfig.Gridfs, ServiceConfig.HdfsNative, ServiceConfig.Hetzner, ServiceConfig.Hf, ServiceConfig.Http, ServiceConfig.IbmCos, ServiceConfig.IdriveE2, ServiceConfig.Ionos, ServiceConfig.Ipfs, ServiceConfig.Ipmfs, ServiceConfig.Koofr, ServiceConfig.Lakefs, ServiceConfig.LakefsS3, ServiceConfig.Memcached, ServiceConfig.Memory, ServiceConfig.MiniMoka, ServiceConfig.Minio, ServiceConfig.Moka, ServiceConfig.Mongodb, ServiceConfig.Monoiofs, ServiceConfig.Mysql, ServiceConfig.Neon, ServiceConfig.Obs, ServiceConfig.ObsS3, ServiceConfig.Oci, ServiceConfig.Onedrive, ServiceConfig.Opfs, ServiceConfig.Oss, ServiceConfig.OssS3, ServiceConfig.Ovhcloud, ServiceConfig.Pcloud, ServiceConfig.Persy, ServiceConfig.Postgresql, ServiceConfig.Qingstor, ServiceConfig.R2, ServiceConfig.Redb, ServiceConfig.Redis, ServiceConfig.Rustfs, ServiceConfig.S3, ServiceConfig.Scaleway, ServiceConfig.Seafile, ServiceConfig.Seaweedfs, ServiceConfig.Sftp, ServiceConfig.Sled, ServiceConfig.Spaces, ServiceConfig.Sqlite, ServiceConfig.Storj, ServiceConfig.Supabase, ServiceConfig.Surrealdb, ServiceConfig.Swift, ServiceConfig.SwiftS3api, ServiceConfig.Tigris, ServiceConfig.Tos, ServiceConfig.TosS3, ServiceConfig.Upyun, ServiceConfig.VercelArtifacts, ServiceConfig.VercelBlob, ServiceConfig.Wasabi, ServiceConfig.Webdav, ServiceConfig.Webhdfs, ServiceConfig.YandexDisk -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Stringnetwork address of the Redis cluster service.final LongThe maximum number of connections allowed.final longthe number of DBs redis can take is unlimitedfinal DurationThe default ttl for put operations.final Stringnetwork address of the Redis service.final Stringthe password for authenticationfinal BooleanRoute read-only commands forreadandstatto Redis Cluster replicas when available.final Stringthe working directory of the Redis service.final Stringthe username to connect redis service. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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
-
connectionPoolMaxSize
The maximum number of connections allowed.
default is 10
-
db
public final long dbthe number of DBs redis can take is unlimited
default is db 0
-
defaultTtl
The default ttl for put operations.
-
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"
-
password
the password for authentication
default is None
-
readFromReplicas
Route read-only commands for
readandstatto Redis Cluster replicas when available.Defaults to
false. Enabling this option requirescluster_endpoints. Replication lag can cause stale results. For example,readorstatcan briefly returnErrorKind::NotFoundfor a just-written key. OpenDAL returns a replica miss without retrying on the primary. -
root
the working directory of the Redis service. Can be "/path/to/dir"
default is "/"
-
username
the username to connect redis service.
default is None
-
-
Constructor Details
-
Redis
public Redis()
-
-
Method Details
-
scheme
Description copied from interface:ServiceConfigThe scheme of the service.- Specified by:
schemein interfaceServiceConfig- Returns:
- the scheme
-
configMap
Description copied from interface:ServiceConfigConvert the structured config to a type erased config map.A map-valued field becomes one entry, under the field's option name, whose value is a JSON object string, such as
assume_role_session_tags={"Team":"data"}. The map's entries are not flattened into top-level entries. Its keys are sorted, an empty map becomes{}, and an unset field has no entry.- Specified by:
configMapin interfaceServiceConfig- Returns:
- the config map
-