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

1.0.1 2020-08-26 14:10 UTC

This package is auto-updated.

Last update: 2021-12-26 17:25:29 UTC


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


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.


  • Up-to-date limitation
  • 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.