No commit activity in last 3 years
No release in over 3 years
Gcloud::Datastore::Activesupport: Google Datastore as Cache for Ruby on Rails application
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Gcloud::Datastore::Activesupport

Use Google Datastore as Cache for Ruby on Rails application.

Usage

How to use the plugin:

  config.cache_store = :gcloud_datastore

Enviroment variable GOOGLE_CLOUD_PROJECT required.

Alternately:

  config.cache_store = :gcloud_datastore, {
      project_id: "gcloud-project-slug-name"
  }

Sometimes credential file is needed (for example in local development):

  config.cache_store = :gcloud_datastore, {
      project_id: "gcloud-project-slug-name",
      credential_file_json: "/path/to/credential_file.json"
  }

or set enviroment variable: GOOGLE_APPLICATION_CREDENTIALS

export GOOGLE_APPLICATION_CREDENTIALS /path/to/credential_file.json

Credential file configuration

https://developers.google.com/accounts/docs/application-default-credentials

https://console.cloud.google.com/apis/credentials/serviceaccountkey

Installation

Add this line to your application's Gemfile:

gem 'gcloud-datastore-activesupport'

And then execute:

$ bundle

Or install it yourself as:

$ gem install gcloud-datastore-activesupport

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.