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

not compatible with catbox? #18

Closed
joeybaker opened this issue Nov 7, 2013 · 3 comments
Closed

not compatible with catbox? #18

joeybaker opened this issue Nov 7, 2013 · 3 comments
Labels
documentation Non-code related changes

Comments

@joeybaker
Copy link
Contributor

I'm a bit confused. Yar's implementation of the cache object, is documented as catbox compatible, but the code does not pass a catbox id object.

yar implementation of the id: https://github.com/spumko/yar/blob/master/lib/index.js#L62
catbox id object: https://github.com/spumko/catbox/blob/master/README.md#api
documentation that says yar is catbox compatible: https://github.com/spumko/yar#options

Code I'm using:

// session cache
sessionCache = new Catbox.Client({
  engine: 'redis'
  , partition: 'session'
})
sessionCache.start()

server.pack.allow({ext: true})
  .require({
    yar: {
      cookieOptions: {
        password: 'secret'
        , isSecure: false
        , clearInvalid: true
      }
      , name: 'session'
      , store: sessionCache
      , ttl: 1000 * 60 * 60 * 24 * 7 // 1 week cache
    }
  }, function(err){
    if (err) throw err
  })
@qraynaud
Copy link

Store should be a catbox policy (they do not have exactly the same API). The documentation is rather obscure on this point.

@hueniverse
Copy link
Contributor

Replaced by #29

@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Non-code related changes
Projects
None yet
Development

No branches or pull requests

3 participants