Skip to content

Commit 771549f

Browse files
authored
README
1 parent 46d03b4 commit 771549f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Firevel - Firestore session driver
2+
Firestore session driver for [Laravel](https://www.laravel.com) and [Firevel](https://www.firevel.com) compatible with Google App Engine standard environment (PHP 7.2).
3+
4+
## Installation
5+
1) Install package with `composer require firevel/firestore-session-driver`
6+
7+
2) Update your app.yaml with:
8+
```
9+
env_variables:
10+
SESSION_DRIVER: firestore
11+
```
12+
13+
## Limitations
14+
Check [Firestore Quotas and Limits](https://cloud.google.com/firestore/quotas).
15+
16+
## High availability applications
17+
If you like to use this driver in high load applications, watch garbage collection that can be a bottleneck.
18+
19+
Modify `config.sessions.lottery` value to set how often garbage collection should happen, and app.yaml `SESSION_GC_BATCH_SIZE` to define garbage collection batch size.
20+
21+
If extremal cases do manual garbage collection from cron job, or shift to `cookie` driver.

0 commit comments

Comments
 (0)