You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package implements tegola's cache interface for use with Redis. If a redis instance is running locally with default configurations solely for tegola simply include the following snippet in tegola's config file:
3
+
This package implements tegola's cache interface for use with Redis.
4
+
If a redis instance is running locally with default configurations solely
5
+
for tegola simply include the following snippet in tegola's config file:
4
6
5
7
```toml
6
8
[cache]
7
9
type="redis"
8
10
```
9
11
10
12
## Properties
13
+
11
14
The rediscache config supports the following properties:
12
15
13
-
-`network` (string): [Optional] Network type, either `tcp` or `unix`. Defaults to 'tcp'.
14
-
-`address` (string): [Optional] the address of the Redis instance in form of `ip:port`. Defaults to '127.0.0.1:6379'.
15
-
-`password` (string): [Optional] password for the Redis instance. Defaults to '' (no password).
16
-
-`db` (int): [Optional] the database within the Redis instance to cache to.
17
-
-`max_zoom` (int): [Optional] the max zoom the cache should cache to. After this zoom, Set() calls will return before doing work.
18
-
-`ttl` (int): [Optional] the key ttl time in seconds. Defaults to 0 (the key has no expiration time).
19
-
-`ssl` (bool): [Optional] encrypt connection to the Redis server. Defaults to false (no SSL/TLS)
16
+
> [!IMPORTANT]
17
+
> Connecting to redis via `uri` is going to be the default from v0.22.0
18
+
> onwards. The properties `network`, `address`, `password``db` and `ssl`
19
+
> are deprecated.
20
20
21
+
-`uri` (string): protocol `redis://` or `rediss://` followed by `<user>:<password>@<host>:<port>/<database>`
22
+
-`network` (string): [Optional] Network type, either `tcp` or `unix`.
23
+
Defaults to 'tcp'.
24
+
-`address` (string): [Optional] the address of the Redis instance in form
25
+
of `ip:port`. Defaults to '127.0.0.1:6379'.
26
+
-`password` (string): [Optional] password for the Redis instance.
27
+
Defaults to '' (no password).
28
+
-`db` (int): [Optional] the database within the Redis instance to cache to.
29
+
-`max_zoom` (int): [Optional] the max zoom the cache should cache to.
30
+
After this zoom, Set() calls will return before doing work.
31
+
-`ttl` (int): [Optional] the key ttl time in seconds. Defaults to 0
32
+
(the key has no expiration time).
33
+
-`ssl` (bool): [Optional] encrypt connection to the Redis server.
0 commit comments