celery.backends.filesystem

File-system result store backend.

class celery.backends.filesystem.FilesystemBackend(url=None, open=<built-in function open>, unlink=<built-in function unlink>, sep='/', encoding='UTF-8', *args, **kwargs)[исходный код]

File-system result backend.

Параметры:
  • url (str) – URL to the directory we should use

  • open (Callable) – open function to use when opening files

  • unlink (Callable) – unlink function to use when deleting files

  • sep (str) – directory separator (to join the directory with the key)

  • encoding (str) – encoding used on the file-system

cleanup()[исходный код]

Delete expired meta-data.

delete(key)[исходный код]
get(key)[исходный код]
mget(keys)[исходный код]
set(key, value)[исходный код]
Вернуться на верх