googleauth - Class Google::Auth::Stores::RedisTokenStore (v1.12.0)

Reference documentation and code samples for the googleauth class Google::Auth::Stores::RedisTokenStore.

Implementation of user token storage backed by Redis. Tokens are stored as JSON using the supplied key, prefixed with g-user-token:

Methods

#delete

def delete(id)

#initialize

def initialize(options = {}) -> RedisTokenStore

Create a new store with the supplied redis client.

Parameters
  • redis (::Redis, String) — Initialized redis client to connect to.
  • prefix (String) — Prefix for keys in redis. Defaults to 'g-user-token:'
Returns

#load

def load(id)

#store

def store(id, token)

Constants

DEFAULT_KEY_PREFIX

value: "g-user-token:".freeze