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
If you have installed [Redis](https://redis.io/docs/install/install-redis/) or [Aerospike](https://aerospike.com/docs/server/operations/install) locally, you may start them both (or separately, depends on your needs) via bash:
32
+
```bash
33
+
sudo systemctl start redis
34
+
sudo systemctl start aerospike
35
+
```
36
+
Alternatively, you may start DB as Docker image.
37
+
You should install [Docker Engine](https://docs.docker.com/engine/install/) if you don't have one.
31
38
39
+
(2.1) Redis via Docker
40
+
1. Pull [Redis docker image](https://hub.docker.com/_/redis) of an appropriate version
41
+
```bash
42
+
docker pull redis:<version>
43
+
```
44
+
2. Run Redis container
45
+
- the `<version>` should correspond to the pulled image version
46
+
- the `<host_port>` should correspond to the `spring.redis.port` property values of the Prebid Cache
47
+
```bash
48
+
docker run -d --name redis -p <host_port>:<container_port> redis:<version>
49
+
50
+
# Example (the host will be defined as localhost by default)
51
+
docker run -d --name redis -p 6379:6379 redis:7.2.4
52
+
```
53
+
54
+
(2.2) Aerospike via Docker
55
+
1. Pull [Aerospike docker image](https://hub.docker.com/_/aerospike) of an appropriate version
56
+
```bash
57
+
docker pull aerospike:<version>
58
+
```
59
+
2. Run Aerospike container (the following instruction is enough for the Community Edition only)
60
+
- the `<version>` should correspond to the pulled image version
61
+
- the `<host_port>` should correspond to the `spring.aerospike.port` property values of the Prebid Cache
62
+
- the `<namespace>` should correspond to the spring.aerospike.namespace property value of the Prebid Cache
32
63
```bash
33
-
$ nohup redis-server &
64
+
docker run -d --name aerospike -e "NAMESPACE=<namespace>" -p <host_port>:<container_port> aerospike:<version>
34
65
35
-
$ sudo service aerospike start
66
+
# Example (the host will be defined as localhost by default)
67
+
docker run -d --name aerospike -e "NAMESPACE=prebid_cache" -p 3000:3000 aerospike:ce-6.4.0.2_1
68
+
```
69
+
70
+
(2.3) Make sure that the Aerospike and/or Redis is up and running
@@ -159,7 +196,6 @@ A configuration object should be passed into the constructor of your custom repo
159
196
this.config = config;
160
197
}
161
198
}
162
-
163
199
```
164
200
165
201
Here is an example definition of a custom configuration property class. It is important to replace _'custom'_ with the correct cache implementation name (e.g. redis, memcached, aerospike, etc...). If Spring already provides a predefined configuration property prefix, please use that instead.
@@ -176,7 +212,6 @@ public class CustomPropertyConfiguration
0 commit comments