Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure or set options? #21

Open
ejstembler opened this issue Feb 20, 2020 · 0 comments
Open

How to configure or set options? #21

ejstembler opened this issue Feb 20, 2020 · 0 comments

Comments

@ejstembler
Copy link

Is there a way to specifiy options, or configuration values?

Many memcached wrappers/libraries have this concept. See:

My ultimate goal is to use MemCachier on Heroku for my Crystal/Kemal app. Most all of their examples recommend changing numerous settings.

From their Ruby examples:

{
  :failover => true,            # default is true
  :socket_timeout => 1.5,       # default is 0.5
  :socket_failure_delay => 0.2, # default is 0.01
  :down_retry_delay => 60       # default is 60
}

From their Python examples:

{
  # Faster IO
  'tcp_nodelay': True,

  # Keep connection alive
  'tcp_keepalive': True,

  # Timeout for set/get requests
  'connect_timeout': 2000, # ms
  'send_timeout': 750 * 1000, # us
  'receive_timeout': 750 * 1000, # us
  '_poll_timeout': 2000, # ms

  # Better failover
  'ketama': True,
  'remove_failed': 1,
  'retry_timeout': 2,
  'dead_timeout': 30,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant