firevel/firestore-cache-driver

Firestore cache driver for Laravel app running inside Google App Engine.

Maintainers

👁 sl0wik

Package info

github.com/firevel/firestore-cache-driver

pkg:composer/firevel/firestore-cache-driver

Statistics

Installs: 20 312

Dependents: 1

Suggesters: 0

Stars: 7

Open Issues: 0

1.1.0 2023-08-15 20:44 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 72ad184d09f0d4f6dea8911dae78993823e2c216

  • Michael Slowik <michael.slowik.woop@firevel.com>

cachedriverlaravelapp enginegoogle cloudfirestorefirevel

This package is auto-updated.

Last update: 2026-06-16 03:28:28 UTC


README

Cache driver for Laravel/Firevel applications running inside App Engine standard environment.

Installation

composer require firevel/firestore-cache-driver

Add firestore driver to config/cache.php

 'stores' => [
 	...
 'firestore' => [
 'driver' => 'firestore',
 'collection' => 'cache', // Firestore collection name.
 ],
 ...
 ];

Set CACHE_DRIVER=firestore in your .env.

Important Notice

Driver was developed basing on Laravel 5.8+ where TTL is counted in seconds not minutes.

Limitations

  • Up-to-date limitation https://cloud.google.com/firestore/quotas.
  • Maximum size for a document is 1MB, so keep your cache values small.
  • Maximum write rate to a document is 1 per second (looks like its higher in practice). It might affect functionalities based on fast value increase (for example api throttling).
  • Firestore can delete one document per call, so operations like flush() taking some time.