hapijs / catbox

Multi-strategy object caching service
Other
494 stars 72 forks source link

gets — Get a values list for alls the keys #61

Closed Natim closed 10 years ago

Natim commented 10 years ago

Javascript is asynchroneous and sometimes we want to get a list of keys. It could be nice to have the gets method to the catbox client so we could get a list of results.

redis and memcached would have the gets for free but for other cache backends, we could just use Async.map to do it in javascript.

hueniverse commented 10 years ago

What's the use case?

Natim commented 10 years ago

The case is when using foreign keys.

A key to keep track of all keys for a given object (comments for a post, user posts...) In that case you want to retrieve the all list at once.

hueniverse commented 10 years ago

I'm not following. Are you using catbox within hapi or on its own?

Natim commented 10 years ago

On its own.

hueniverse commented 10 years ago

Hmm. Seems like a pretty complicated undertaking for little value. Why not build something on top of it with support for just what you need? Or just fork?

lock[bot] commented 4 years ago

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.