| Class | Google::Auth::Stores::RedisTokenStore |
| In: |
lib/googleauth/stores/redis_token_store.rb
|
| Parent: | Google::Auth::TokenStore |
Implementation of user token storage backed by Redis. Tokens are stored as JSON using the supplied key, prefixed with `g-user-token:`
| DEFAULT_KEY_PREFIX | = | "g-user-token:".freeze |
Create a new store with the supplied redis client.
@param [::Redis, String] redis
Initialized redis client to connect to.
@param [String] prefix
Prefix for keys in redis. Defaults to 'g-user-token:'
@note If no redis instance is provided, a new one is created and
the options passed through. You may include any other keys accepted by `Redis.new`