Elaborate time to live and max idle in documentation
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 55/100
- Issue-Typ
- Dokumentation
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- python
- Bereich
- documentation
Rechercherichtung
Beginne mit der im Issue verlinkten Dokumentation zur Map.put API des Python-Clients und überprüfe die vorhandenen Beschreibungen von ttl und max_idle. Verwende die Formulierung der Node.js API und die verlinkte Dokumentation zur Map-Konfiguration als Referenzen; als abgeschlossen gilt die Aufgabe, wenn die Python-Dokumentation erklärt, wann jeder Wert zurückgesetzt wird und wie sich null oder Konfigurationsstandardwerte verhalten.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Python
- Sterne
- 115
- Forks
- 78
- Ø Merge
- 2 T. 23 Std.
- Gemergte PRs (30 T.)
- 2
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus hazelcast/hazelcast-python-client
-
Type: Test-Failure
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
Type: Test-Failure
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
-
asyncio Type: Test-Failure
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 38/100
-
asyncio to-jira Type: Test-Failure
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
hazelcast/hazelcast-python-client#761 · 1 Kommentar ·
-
asyncio to-jira Type: Test-Failure
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
hazelcast/hazelcast-python-client#760 · 1 Kommentar ·
Alle Issues in hazelcast/hazelcast-python-client
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
marketcalls/openalgo#2472 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
marimo-team/marimo#11949 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug server-time v2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
modelcontextprotocol/servers#5559 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
jxxghp/MoviePilot#7449 ·
Maintainer antworten meist innerhalb von 1 Tag
-
devops help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
guaardvark/guaardvark#421 ·
Maintainer antworten meist innerhalb von 2 Tagen