Elaborate time to live and max idle in documentation
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Documentación
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- documentation
Línea de trabajo
Comienza con la documentación de la API Map.put del cliente de Python enlazada en el issue y revisa las descripciones existentes de ttl y max_idle. Usa como referencias la redacción de la API de Node.js y la documentación enlazada sobre la configuración del mapa; se considera terminado cuando la documentación de Python explique cuándo se restablece cada valor y cómo se comportan cero o los valores predeterminados de la configuración.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Right now in python client docs we say this about ttl and max idle:
ttl (int) – Maximum time in seconds for this entry to stay in the map. If not provided, the value configured on the server side configuration will be used. Setting this to 0 means infinite time-to-live.
max_idle (int) – Maximum time in seconds for this entry to stay idle in the map. If not provided, the value configured on the server side configuration will be used. Setting this to 0 means infinite max idle time.
as can be found here:
A community user asked this in slack:
Hi, Can any one tell me if it possible to update a map and keep the original TTL that was set when it was created?
I understood it as he is asking if he can reset ttl to its first value when updating an entry, but it is the default behaviour already. See this section: https://docs.hazelcast.com/cloud/map-configurations.html#time-to-live
In Node.js client we have this explanation in the apidocs:
The entry will expire and get evicted after the TTL. It limits the lifetime of the entries relative to the time of the last write access performed on them. If the TTL is 0, then the entry lives forever. If the TTL is negative, then the TTL from the map configuration will be used (default: forever).
The entry will expire and get evicted after the Max Idle time. It limits the lifetime of the entries relative to the time of the last read or write access performed on them. If the Max Idle is 0, then the entry lives forever. If the Max Idle is negative, then the Max Idle from the map configuration will be used (default: forever). The time precision is limited by 1 second. The Max Idle that is less than 1 second can lead to unexpected behaviour.
which explains when ttl and max idle's are reset.
We should have more detail in python version too, at least we should mention when ttl and max idle reset.
- Lenguaje dominante
- Python
- Estrellas
- 115
- Forks
- 78
- Merge medio
- 2 d 23 h
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de hazelcast/hazelcast-python-client
-
Type: Test-Failure
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Type: Test-Failure
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
-
asyncio Type: Test-Failure
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
-
asyncio to-jira Type: Test-Failure
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
hazelcast/hazelcast-python-client#761 · 1 comentario ·
-
asyncio to-jira Type: Test-Failure
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
hazelcast/hazelcast-python-client#760 · 1 comentario ·
Todos los issues de hazelcast/hazelcast-python-client
Issues similares
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
aws-samples/sample-spec-driven-presentation-maker#648 ·
Los mantenedores suelen responder en 1 día
-
firestore: enable live window.yaml pipeline system tests once add_window_fields is in productionAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 64/100
googleapis/google-cloud-python#19115 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Feyisara2108/stellargive#1377 ·
Los mantenedores suelen responder en 1 día
-
CRS WKT default to WKT2Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día