Skip to content

Commit 79ecae2

Browse files
authored
Update README.md
1 parent 71d82d6 commit 79ecae2

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,27 @@ The storage on the Standard Environment is shared between all instances, but can
8787

8888
The main one is an altered Blade compiler, with an `isExpired` function that reads the whole view cache rather than checking if the file exists, which in turn causes the modified `cachefs` driver to create a local in-memory cache of the contents using variables, so it isn't affected if memcache is cleared between the `isExpired` check and the actual view rendering, which we used to see causing quite a few fatal errors.
8989

90-
### Persistent Sessions in DataStore
91-
90+
## Persistent Sessions in DataStore
9291
We've included a session driver using DataStore for persistence, cached by memcache* for faster access times and reduced billing, giving you the best of both worlds when it comes to speed and persistence.
9392

9493
To make use of this, set:
9594
- `SESSION_DRIVER=gae` in `.env`
9695

9796
(*) memcache code is included, but since it isn't currently available on the Flexible environment, this won't function on there for now.
97+
98+
## Helper Functions
99+
There are a set of helper functions included that you can use for GAE specific purposes:
100+
* `gae_project()`
101+
* The Google Cloud project ID.
102+
* `gae_service()`
103+
* The App Engine Service/Module name for the current instance.
104+
* `gae_version()`
105+
* The App Engine version name for the current instance.
106+
* `gae_instance()`
107+
* The App Engine instance name.
108+
* `is_gae()`
109+
* Are we running on App Engine, returns true for Standard Environment + Local SDK & Flexible Environment.
110+
* `is_gae_std()`
111+
* Are we running on App Engine Standard Environment, also returns true for the Local SDK.
112+
* `is_gae_flex()`
113+
* Are we running on App Engine Flexible Environment.

0 commit comments

Comments
 (0)