Issue #220
0 up
0 down
← To issues list
|
Milestone
Modificar receita do colab
Configurar Colab para usar memcached local
Precisamos criar um arquivo de configuração no /etc/colab/settings.d/
para configurar o Colab para usar o memcached local.
O conteúdo do arquivo provavelmente será o seguinte:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}
Para testar abra um terminal com o colab-admin shell
, importe from django.core.cache import cache
e sete uma chave no cache com cache.set('hello', 'world')
. Feche o terminal e abra novamente. Importe o cache mais uma vez e tente acessar a chave do cache. Ex: cache.get('hello')
deverá retornar world
. Caso não retorne o memcached não está sendo usado.
-
@kanashiro, como está essa tarefa?
-
Milestone changed to Modificar receita do colab
-
@alexandre e @paulohtfs como ficou essa tarefa?
-
@alexandre Como está essa tarefa?
-
Está concluída @davidcarlos.
-
Status changed to closed