mirror of https://github.com/zulip/zulip.git
20 lines
500 B
Python
Executable File
20 lines
500 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import os
|
|
import sys
|
|
|
|
BASE_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "../..")
|
|
sys.path.append(BASE_DIR)
|
|
|
|
import scripts.lib.setup_path_on_import
|
|
from zproject import settings
|
|
import pylibmc
|
|
|
|
pylibmc.Client(
|
|
[settings.MEMCACHED_LOCATION],
|
|
binary=True,
|
|
username=settings.MEMCACHED_USERNAME,
|
|
password=settings.MEMCACHED_PASSWORD,
|
|
behaviors=settings.CACHES["default"]["OPTIONS"] # type: ignore # settings not typed properly
|
|
).flush_all()
|