Skip to content

Commit c1bac59

Browse files
Merge pull request #291 from aerospike/stage
PR: Client-Python release 7.1.1 merge
2 parents 44ea8a1 + 6b9f593 commit c1bac59

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

doc/query.rst

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,23 @@ Fields
8080
Default: ``0`` (no limit)
8181

8282
ttl (:class:`int`)
83-
0, "The time-to-live (expiration) of the record in seconds.
84-
There are also special values that can be set in the record TTL:
85-
ZERO (defined as TTL_NAMESPACE_DEFAULT): which means that the
86-
record will adopt the default TTL value from the namespace.
87-
0xFFFFFFFF (also, -1 in a signed 32 bit int):
88-
(defined as TTL_NEVER_EXPIRE), which means that the record will never expire.
89-
0xFFFFFFFE (also, -2 in a signed 32 bit int):
90-
(defined as TTL_DONT_UPDATE), which means that the record
91-
ttl will not change when the record is updated.
92-
93-
Note that the TTL value will be employed ONLY on background query writes.
83+
The time-to-live (expiration) of the record in seconds.
84+
85+
There are also special values that can be set in the record TTL:
86+
87+
``0`` (``TTL_NAMESPACE_DEFAULT``)
88+
Which means that the record will adopt the default TTL value from the namespace.
89+
90+
``0xFFFFFFFF`` (``TTL_NEVER_EXPIRE``)
91+
(also, ``-1`` in a signed 32 bit int) Which means that the record will never expire.
92+
93+
``0xFFFFFFFE`` (``TTL_DONT_UPDATE``)
94+
(also, ``-2`` in a signed 32 bit int)
95+
Which means that the record ttl will not change when the record is
96+
updated.
97+
98+
.. note::
99+
Note that the TTL value will be employed ONLY on background query writes.
94100

95101
Requires server version >= 6.0.0
96102

0 commit comments

Comments
 (0)