Elaborate time to live and max idle in documentation
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 55/100
- Type d'issue
- Documentation
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- python
- Domaine
- documentation
Piste de recherche
Commencez par la documentation de l’API Map.put du client Python liée dans l’issue et examinez les descriptions existantes de ttl et max_idle. Utilisez la formulation de l’API Node.js et la documentation liée sur la configuration de la map comme références ; le travail est terminé lorsque la documentation Python explique quand chaque valeur est réinitialisée et comment se comportent zéro ou les valeurs par défaut de la configuration.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Python
- Étoiles
- 115
- Forks
- 78
- Merge moyen
- 2 j 23 h
- PR mergées (30 j)
- 2
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de hazelcast/hazelcast-python-client
-
Type: Test-Failure
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Type: Test-Failure
Difficulté 3/5 1-2 jours Accessibilité débutants 52/100
-
asyncio Type: Test-Failure
Difficulté 4/5 3-5 jours Accessibilité débutants 38/100
-
asyncio to-jira Type: Test-Failure
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
hazelcast/hazelcast-python-client#761 · 1 commentaire ·
-
asyncio to-jira Type: Test-Failure
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
hazelcast/hazelcast-python-client#760 · 1 commentaire ·
Toutes les issues de hazelcast/hazelcast-python-client
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
marketcalls/openalgo#2472 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
marimo-team/marimo#11949 ·
Les mainteneurs répondent en général sous 1 jour
-
bug server-time v2
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
modelcontextprotocol/servers#5559 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
jxxghp/MoviePilot#7449 ·
Les mainteneurs répondent en général sous 1 jour
-
devops help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
guaardvark/guaardvark#421 ·
Les mainteneurs répondent en général sous 2 jours