Skip to content
This repository was archived by the owner on Jul 14, 2021. It is now read-only.

Latest commit

 

History

History
28 lines (25 loc) · 1.23 KB

README.md

File metadata and controls

28 lines (25 loc) · 1.23 KB

Django Firebase Cache

PyPI version Build status Coverage Python versions Github license

Install

pip install django-firebase-cache

Usage

# settings.py

CACHES = {
    "firebase": {
        "BACKEND": "django_firebase_cache.RealtimeDatabaseCache",
        "LOCATION": "django",  # name of child key in Realtime Database
        "OPTIONS": {"databaseURL": "https://project-id.firebaseio.com/"},
    },
    "firestore": {
        "BACKEND": "django_firebase_cache.FirestoreCache",
        "LOCATION": "django",  # name of collection in Firestore
    },
}