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

christippett/django-firebase-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
    },
}

About

A Cloud Firestore / Firebase Realtime Database cache backend for Django

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages