<commit_before># Google Cloud Datastore Sessions

``cloud-datastore-session`` is a Express session storage backed by [Google Cloud Datastore](https://cloud.google.com/datastore/docs).

**Note:** Cloud Datastore is a persistent, distributed, transactional database. Often, it's more appropriate to choose a different storage solution for sessions such as Memcache or Redis as their designs offer much faster operation in this use case.

## Installation

    $ npm install --save cloud-datastore-session

## Configuration

You must have a Google Cloud project and credentials. See [gcloud node's documentation](https://github.com/GoogleCloudPlatform/gcloud-node#authorization) on setting up authorization.

## Usage Example

```javascript
var express = require('express');
var session = require('express-session');
var app = express();

var DatastoreStore = require('cloud-datastore-session')(session);

app.use(session({
  store: new DatastoreStore({
    dataset: gcloud.datastore.dataset({
        prefix: 'express-sessions',
        projectId: 'my-project-id',
        keyFilename: './key.json'
    }))
  }),
  secret: 'my-secret'
}));
```

## Contributing changes

* See [CONTRIB.md](CONTRIB.md)


## Licensing

* Apache 2.0 - See [LICENSE](LICENSE)
<commit_msg>update readme.md to 0.30.x SDK<commit_after># Google Cloud Datastore Sessions

``cloud-datastore-session`` is a Express session storage backed by [Google Cloud Datastore](https://cloud.google.com/datastore/docs).

**Note:** Cloud Datastore is a persistent, distributed, transactional database. Often, it's more appropriate to choose a different storage solution for sessions such as Memcache or Redis as their designs offer much faster operation in this use case.

## Installation

    $ npm install --save cloud-datastore-session

## Configuration

You must have a Google Cloud project and credentials. See [gcloud node's documentation](https://github.com/GoogleCloudPlatform/gcloud-node#authorization) on setting up authorization.

## Usage Example

```javascript
var express = require('express');
var session = require('express-session');
var app = express();

var DatastoreStore = require('cloud-datastore-session')(session);

app.use(session({
  store: new DatastoreStore({
    dataset: gcloud.datastore({
        prefix: 'express-sessions',
        projectId: 'my-project-id',
        keyFilename: './key.json'
    }))
  }),
  secret: 'my-secret'
}));
```

## Contributing changes

* See [CONTRIB.md](CONTRIB.md)


## Licensing

* Apache 2.0 - See [LICENSE](LICENSE)

{'fraction_non_alphanumeric': 0.1214032321639732, 'fraction_numerical': 0.0027591643673630273, 'mean_word_length': 4.481641468682505, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3647681', 'n_tokens_mistral': 741, 'n_tokens_neox': 711, 'n_words': 232}