mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
docs: update redis cache client options (#10521)
Between v3 and v4 in node-redis the client options changed for a collection of socket related paramaters. In the caching documentation the v3 format for used for `host` and `socket`. When following the documented example the redis client would default to `localhost` even when a different value for `host` was specified. Closes: #9987
This commit is contained in:
parent
ccb9aff89a
commit
d76b546929
@ -137,8 +137,10 @@ Example:
|
||||
cache: {
|
||||
type: "redis",
|
||||
options: {
|
||||
host: "localhost",
|
||||
port: 6379
|
||||
socket: {
|
||||
host: "localhost",
|
||||
port: 6379
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -240,8 +242,10 @@ Example:
|
||||
cache: {
|
||||
type: "redis",
|
||||
options: {
|
||||
host: "localhost",
|
||||
port: 6379
|
||||
socket: {
|
||||
host: "localhost",
|
||||
port: 6379
|
||||
}
|
||||
},
|
||||
ignoreErrors: true
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user