1.17.8 (latest) 1.17.7 1.16.2 1.15.1 1.14.0 1.13.1 1.12.2 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:`

## Inherits

- [Google::Auth::TokenStore](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-TokenStore.md.txt)

## Methods

### #delete

```ruby
def delete(id)
```

### #initialize

```ruby
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**

- ([RedisTokenStore](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-Stores-RedisTokenStore.md.txt)) --- a new instance of RedisTokenStore

### #load

```ruby
def load(id)
```

### #store

```ruby
def store(id, token)
```

## Constants

### DEFAULT_KEY_PREFIX

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