Skip to content

Commit

Permalink
Merge pull request #83 from valkey-io/aiven-sal/doc
Browse files Browse the repository at this point in the history
docs: hide unsupported commands and fix copyright
  • Loading branch information
aiven-sal authored Sep 3, 2024
2 parents fd7a56a + 566dc69 commit b10b338
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
# General information about the project.
project = "valkey-py"
current_year = datetime.datetime.now().year
copyright = f"{current_year}, Valkey Inc"
copyright = f"{current_year}, Redis Ltd"

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -229,7 +229,7 @@
# (source start file, target name, title, author, documentclass
# [howto/manual]).
latex_documents = [
("index", "valkey-py.tex", "valkey-py Documentation", "Valkey Inc", "manual")
("index", "valkey-py.tex", "valkey-py Documentation", "Valkey", "manual")
]

# The name of an image file (relative to this directory) to place at the top of
Expand Down Expand Up @@ -273,7 +273,7 @@
"index",
"valkey-py",
"valkey-py Documentation",
"Valkey Inc",
"Valkey",
"valkey-py",
"One line description of project.",
"Miscellaneous",
Expand All @@ -290,6 +290,6 @@
# texinfo_show_urls = 'footnote'

epub_title = "valkey-py"
epub_author = "Valkey Inc"
epub_publisher = "Valkey Inc"
epub_copyright = "2023, Valkey Inc"
epub_author = "Valkey"
epub_publisher = "Valkey"
epub_copyright = "2023, Redis Ltd"
36 changes: 36 additions & 0 deletions valkey/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5103,6 +5103,10 @@ def hexpire(
lt: bool = False,
) -> ResponseT:
"""
:meta private:
Command not available in Valkey
Sets or updates the expiration time for fields within a hash key, using relative
time in seconds.
Expand Down Expand Up @@ -5164,6 +5168,10 @@ def hpexpire(
lt: bool = False,
) -> ResponseT:
"""
:meta private:
Command not available in Valkey
Sets or updates the expiration time for fields within a hash key, using relative
time in milliseconds.
Expand Down Expand Up @@ -5225,6 +5233,10 @@ def hexpireat(
lt: bool = False,
) -> ResponseT:
"""
:meta private:
Command not available in Valkey
Sets or updates the expiration time for fields within a hash key, using an
absolute Unix timestamp in seconds.
Expand Down Expand Up @@ -5292,6 +5304,10 @@ def hpexpireat(
lt: bool = False,
) -> ResponseT:
"""
:meta private:
Command not available in Valkey
Sets or updates the expiration time for fields within a hash key, using an
absolute Unix timestamp in milliseconds.
Expand Down Expand Up @@ -5350,6 +5366,10 @@ def hpexpireat(

def hpersist(self, name: KeyT, *fields: str) -> ResponseT:
"""
:meta private:
Command not available in Valkey
Removes the expiration time for each specified field in a hash.
For more information, see https://redis.io/commands/hpersist
Expand All @@ -5370,6 +5390,10 @@ def hpersist(self, name: KeyT, *fields: str) -> ResponseT:

def hexpiretime(self, key: KeyT, *fields: str) -> ResponseT:
"""
:meta private:
Command not available in Valkey
Returns the expiration times of hash fields as Unix timestamps in seconds.
For more information, see https://redis.io/commands/hexpiretime
Expand All @@ -5393,6 +5417,10 @@ def hexpiretime(self, key: KeyT, *fields: str) -> ResponseT:

def hpexpiretime(self, key: KeyT, *fields: str) -> ResponseT:
"""
:meta private:
Command not available in Valkey
Returns the expiration times of hash fields as Unix timestamps in milliseconds.
For more information, see https://redis.io/commands/hpexpiretime
Expand All @@ -5416,6 +5444,10 @@ def hpexpiretime(self, key: KeyT, *fields: str) -> ResponseT:

def httl(self, key: KeyT, *fields: str) -> ResponseT:
"""
:meta private:
Command not available in Valkey
Returns the TTL (Time To Live) in seconds for each specified field within a hash
key.
Expand All @@ -5439,6 +5471,10 @@ def httl(self, key: KeyT, *fields: str) -> ResponseT:

def hpttl(self, key: KeyT, *fields: str) -> ResponseT:
"""
:meta private:
Command not available in Valkey
Returns the TTL (Time To Live) in milliseconds for each specified field within a
hash key.
Expand Down

0 comments on commit b10b338

Please sign in to comment.