mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
fill_memcached_caches: Document possible arguments to --cache.
This commit is contained in:
committed by
Tim Abbott
parent
2f7068ffbb
commit
3d66dd9eeb
@@ -8,7 +8,9 @@ from zerver.lib.cache_helpers import cache_fillers, fill_remote_cache
|
|||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
def add_arguments(self, parser: ArgumentParser) -> None:
|
def add_arguments(self, parser: ArgumentParser) -> None:
|
||||||
parser.add_argument("--cache", help="Populate the memcached cache of messages.")
|
parser.add_argument(
|
||||||
|
"--cache", help="Populate one specific cache", choices=cache_fillers.keys()
|
||||||
|
)
|
||||||
|
|
||||||
def handle(self, *args: Any, **options: Optional[str]) -> None:
|
def handle(self, *args: Any, **options: Optional[str]) -> None:
|
||||||
if options["cache"] is not None:
|
if options["cache"] is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user