Skip to content

Instantly share code, notes, and snippets.

@DamirSvrtan
Last active August 29, 2015 14:01
Show Gist options
  • Save DamirSvrtan/ae294ddf30f4ab740473 to your computer and use it in GitHub Desktop.
Save DamirSvrtan/ae294ddf30f4ab740473 to your computer and use it in GitHub Desktop.
Redis Store Stormpath
stormpath_client = Stormpath::Client.new(api_key: api_key, cache: {
regions: {
applications: { store: Stormpath::Cache::RedisStore, ttl_seconds: 300, tti_seconds: 300, store_opts: {:host => uri.host, :port => uri.port, :password => uri.password} },
directories: { store: Stormpath::Cache::RedisStore, ttl_seconds: 300, tti_seconds: 300, store_opts: {:host => uri.host, :port => uri.port, :password => uri.password} },
groups: { store: Stormpath::Cache::RedisStore, ttl_seconds: 300, tti_seconds: 300, store_opts: {:host => uri.host, :port => uri.port, :password => uri.password} }
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment