File tree Expand file tree Collapse file tree 5 files changed +73
-1
lines changed Expand file tree Collapse file tree 5 files changed +73
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ services:
50
50
- WAIT_FOR=postgres-db:5432
51
51
depends_on :
52
52
- postgres-db
53
+ - memcached
54
+ - memcached2
53
55
postgres-db :
54
56
<< : *postgres-base
55
57
image : postgres:${POSTGRES_VERSION}
@@ -78,6 +80,8 @@ services:
78
80
- WAIT_FOR=mysql-db:3306
79
81
depends_on :
80
82
- mysql-db
83
+ - memcached
84
+ - memcached2
81
85
mysql-db : &mysql_base
82
86
image : mysql:${MYSQL_VERSION}
83
87
entrypoint : ['/entrypoint.sh', '--default-authentication-plugin=mysql_native_password']
@@ -108,6 +112,8 @@ services:
108
112
- WAIT_FOR=mariadb-db:3306
109
113
depends_on :
110
114
- mariadb-db
115
+ - memcached
116
+ - memcached2
111
117
mariadb-db :
112
118
image : mariadb:${MARIADB_VERSION}
113
119
tmpfs :
@@ -127,6 +133,8 @@ services:
127
133
entrypoint : /oracle_entrypoint.sh python tests/runtests.py
128
134
depends_on :
129
135
- oracle-db
136
+ - memcached
137
+ - memcached2
130
138
oracle-db :
131
139
image : sath89/oracle-12c
132
140
volumes :
@@ -135,7 +143,7 @@ services:
135
143
- WEB_CONSOLE=false
136
144
137
145
memcached : &memcached
138
- image : memcached:1.5-alpine
146
+ image : memcached
139
147
140
148
memcached2 :
141
149
<< : *memcached
Original file line number Diff line number Diff line change 27
27
PASSWORD_HASHERS = [
28
28
'django.contrib.auth.hashers.MD5PasswordHasher' ,
29
29
]
30
+
31
+ CACHES = {
32
+ 'default' : {
33
+ 'BACKEND' : 'django.core.cache.backends.locmem.LocMemCache' ,
34
+ },
35
+ 'memcached' : {
36
+ 'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache' ,
37
+ 'LOCATION' : 'memcached:11211' ,
38
+ 'KEY_PREFIX' : '1:'
39
+ },
40
+ 'memcached_2' : {
41
+ 'BACKEND' : 'django.core.cache.backends.memcached.PyLibMCCache' ,
42
+ 'LOCATION' : 'memcached2:11211' ,
43
+ 'KEY_PREFIX' : '2:'
44
+ }
45
+ }
Original file line number Diff line number Diff line change 27
27
PASSWORD_HASHERS = [
28
28
'django.contrib.auth.hashers.MD5PasswordHasher' ,
29
29
]
30
+
31
+ CACHES = {
32
+ 'default' : {
33
+ 'BACKEND' : 'django.core.cache.backends.locmem.LocMemCache' ,
34
+ },
35
+ 'memcached' : {
36
+ 'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache' ,
37
+ 'LOCATION' : 'memcached:11211' ,
38
+ 'KEY_PREFIX' : '1:'
39
+ },
40
+ 'memcached_2' : {
41
+ 'BACKEND' : 'django.core.cache.backends.memcached.PyLibMCCache' ,
42
+ 'LOCATION' : 'memcached2:11211' ,
43
+ 'KEY_PREFIX' : '2:'
44
+ }
45
+ }
Original file line number Diff line number Diff line change 29
29
PASSWORD_HASHERS = [
30
30
'django.contrib.auth.hashers.MD5PasswordHasher' ,
31
31
]
32
+
33
+ CACHES = {
34
+ 'default' : {
35
+ 'BACKEND' : 'django.core.cache.backends.locmem.LocMemCache' ,
36
+ },
37
+ 'memcached' : {
38
+ 'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache' ,
39
+ 'LOCATION' : 'memcached:11211' ,
40
+ 'KEY_PREFIX' : '1:'
41
+ },
42
+ 'memcached_2' : {
43
+ 'BACKEND' : 'django.core.cache.backends.memcached.PyLibMCCache' ,
44
+ 'LOCATION' : 'memcached2:11211' ,
45
+ 'KEY_PREFIX' : '2:'
46
+ }
47
+ }
Original file line number Diff line number Diff line change 35
35
PASSWORD_HASHERS = [
36
36
'django.contrib.auth.hashers.MD5PasswordHasher' ,
37
37
]
38
+
39
+ CACHES = {
40
+ 'default' : {
41
+ 'BACKEND' : 'django.core.cache.backends.locmem.LocMemCache' ,
42
+ },
43
+ 'memcached' : {
44
+ 'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache' ,
45
+ 'LOCATION' : 'memcached:11211' ,
46
+ 'KEY_PREFIX' : '1:'
47
+ },
48
+ 'memcached_2' : {
49
+ 'BACKEND' : 'django.core.cache.backends.memcached.PyLibMCCache' ,
50
+ 'LOCATION' : 'memcached2:11211' ,
51
+ 'KEY_PREFIX' : '2:'
52
+ }
53
+ }
You can’t perform that action at this time.
0 commit comments